Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sql> EXPLAIN PLAN FOR select "libertybans_applicable_active"."id", "libertybans_applicable_active"."victim_type", "libertybans_applicable_active"."victim_uuid", "libertybans_applicable_active"."victim_address", "libertybans_applicable_active"."operator", "libertybans_applicable_active"."reason", "libertybans_applicable_active"."scope", "libertybans_applicable_active"."start", "libertybans_applicable_active"."end" from "libertybans_applicable_active" where ("libertybans_applicable_active"."type" = 0 and "libertybans_applicable_active"."uuid" = '98e90094-d8c8-4149-a3fd-ff39b83f98c1' and ("libertybans_applicable_active"."end" = 0 or "libertybans_applicable_active"."end" > 1621440000)) limit 1;
- isDistinctSelect=[false]
- isGrouped=[false]
- isAggregated=[false]
- columns=[ COLUMN: PUBLIC."libertybans_applicable_active"."id" nullable
- COLUMN: PUBLIC."libertybans_applicable_active"."victim_type" nullable
- COLUMN: PUBLIC."libertybans_applicable_active"."victim_uuid" nullable
- COLUMN: PUBLIC."libertybans_applicable_active"."victim_address" nullable
- COLUMN: PUBLIC."libertybans_applicable_active"."operator" nullable
- COLUMN: PUBLIC."libertybans_applicable_active"."reason" nullable
- COLUMN: PUBLIC."libertybans_applicable_active"."scope" nullable
- COLUMN: PUBLIC."libertybans_applicable_active"."start" nullable
- COLUMN: PUBLIC."libertybans_applicable_active"."end" nullable
- ]
- [range variable 1
- join type=INNER
- table=libertybans_applicable_active
- cardinality=0
- access=INDEX PRED
- join condition = [index=SYS_IDX_T_10301
- start conditions=[
- EQUAL arg_left=[ COLUMN: PUBLIC."libertybans_applicable_active"."type"
- ] arg_right=[
- VALUE = 0, TYPE = INTEGER]
- EQUAL arg_left=[ COLUMN: PUBLIC."libertybans_applicable_active"."uuid"
- ] arg_right=[
- VALUE = 98e90094-d8c8-4149-a3fd-ff39b83f98c1, TYPE = UUID]]
- other condition=[
- OR arg_left=[
- EQUAL arg_left=[ COLUMN: PUBLIC."libertybans_applicable_active"."end"
- ] arg_right=[
- VALUE = 0, TYPE = INTEGER]] arg_right=[
- GREATER arg_left=[ COLUMN: PUBLIC."libertybans_applicable_active"."end"
- ] arg_right=[
- VALUE = 1621440000, TYPE = INTEGER]]]
- ]
- ]]
- offset=[
- VALUE = 0, TYPE = INTEGER]
- limit=[
- VALUE = 1, TYPE = INTEGER]
- PARAMETERS=[]
- SUBQUERIES[
- [level=1
- isDistinctSelect=[false]
- isGrouped=[false]
- isAggregated=[false]
- columns=[ COLUMN: PUBLIC."libertybans_punishments"."id" not nullable
- COLUMN: PUBLIC."libertybans_punishments"."type" not nullable
- COLUMN: PUBLIC."libertybans_victims"."type" AS victim_type not nullable
- COLUMN: PUBLIC."libertybans_victims"."uuid" AS victim_uuid not nullable
- COLUMN: PUBLIC."libertybans_victims"."address" AS victim_address not nullable
- COLUMN: PUBLIC."libertybans_punishments"."operator" not nullable
- COLUMN: PUBLIC."libertybans_punishments"."reason" not nullable
- COLUMN: PUBLIC."libertybans_punishments"."scope" not nullable
- COLUMN: PUBLIC."libertybans_punishments"."start" not nullable
- COLUMN: PUBLIC."libertybans_punishments"."end" not nullable
- ]
- [range variable 1
- join type=INNER
- table=libertybans_bans
- alias=thetype
- cardinality=17
- access=FULL SCAN
- join condition = [index=SYS_IDX_10165
- ]
- ] [range variable 2
- join type=INNER
- table=libertybans_punishments
- alias=puns
- cardinality=254
- access=INDEX PRED
- join condition = [index=libertybans_punishment_id_uniqueness
- start conditions=[
- EQUAL arg_left=[ COLUMN: PUBLIC."libertybans_punishments"."id"
- ] arg_right=[ COLUMN: PUBLIC."libertybans_bans"."id"
- ]]
- ]
- ] [range variable 3
- join type=INNER
- table=libertybans_victims
- alias=victims
- cardinality=100
- access=INDEX PRED
- join condition = [index=libertybans_victim_id_uniqueness
- start conditions=[
- EQUAL arg_left=[ COLUMN: PUBLIC."libertybans_victims"."id"
- ] arg_right=[ COLUMN: PUBLIC."libertybans_bans"."victim"
- ]]
- ]
- ] ]
- ]
- [level=1
- isDistinctSelect=[false]
- isGrouped=[false]
- isAggregated=[false]
- columns=[ COLUMN: PUBLIC."libertybans_simple_bans"."id" nullable
- COLUMN: PUBLIC."libertybans_simple_bans"."type" nullable
- COLUMN: PUBLIC."libertybans_simple_bans"."victim_type" nullable
- COLUMN: PUBLIC."libertybans_simple_bans"."victim_uuid" nullable
- COLUMN: PUBLIC."libertybans_simple_bans"."victim_address" nullable
- COLUMN: PUBLIC."libertybans_simple_bans"."operator" nullable
- COLUMN: PUBLIC."libertybans_simple_bans"."reason" nullable
- COLUMN: PUBLIC."libertybans_simple_bans"."scope" nullable
- COLUMN: PUBLIC."libertybans_simple_bans"."start" nullable
- COLUMN: PUBLIC."libertybans_simple_bans"."end" nullable
- COLUMN: PUBLIC."libertybans_addresses"."uuid" not nullable
- COLUMN: PUBLIC."libertybans_addresses"."address" not nullable
- ]
- [range variable 1
- join type=INNER
- table=libertybans_simple_bans
- alias=puns
- cardinality=0
- access=FULL SCAN
- join condition = [index=SYS_IDX_10203
- ]
- ] [range variable 2
- join type=INNER
- table=libertybans_addresses
- alias=addrs
- cardinality=8959
- access=FULL SCAN
- join condition = [index=SYS_IDX_10127
- other condition=[
- OR arg_left=[
- OR arg_left=[
- AND arg_left=[
- EQUAL arg_left=[ COLUMN: PUBLIC."libertybans_simple_bans"."victim_type"
- ] arg_right=[
- VALUE = 0, TYPE = INTEGER]] arg_right=[
- EQUAL arg_left=[ COLUMN: PUBLIC."libertybans_addresses"."uuid"
- ] arg_right=[ COLUMN: PUBLIC."libertybans_simple_bans"."victim_uuid"
- ]]] arg_right=[
- AND arg_left=[
- EQUAL arg_left=[ COLUMN: PUBLIC."libertybans_simple_bans"."victim_type"
- ] arg_right=[
- VALUE = 1, TYPE = INTEGER]] arg_right=[
- EQUAL arg_left=[ COLUMN: PUBLIC."libertybans_addresses"."address"
- ] arg_right=[ COLUMN: PUBLIC."libertybans_simple_bans"."victim_address"
- ]]]] arg_right=[
- AND arg_left=[
- EQUAL arg_left=[ COLUMN: PUBLIC."libertybans_simple_bans"."victim_type"
- ] arg_right=[
- VALUE = 2, TYPE = INTEGER]] arg_right=[
- OR arg_left=[
- EQUAL arg_left=[ COLUMN: PUBLIC."libertybans_addresses"."uuid"
- ] arg_right=[ COLUMN: PUBLIC."libertybans_simple_bans"."victim_uuid"
- ]] arg_right=[
- EQUAL arg_left=[ COLUMN: PUBLIC."libertybans_addresses"."address"
- ] arg_right=[ COLUMN: PUBLIC."libertybans_simple_bans"."victim_address"
- ]]]]]
- ]
- ] ]
- ]
- [level=1
- isDistinctSelect=[false]
- isGrouped=[false]
- isAggregated=[false]
- columns=[ COLUMN: PUBLIC."libertybans_punishments"."id" not nullable
- COLUMN: PUBLIC."libertybans_punishments"."type" not nullable
- COLUMN: PUBLIC."libertybans_victims"."type" AS victim_type not nullable
- COLUMN: PUBLIC."libertybans_victims"."uuid" AS victim_uuid not nullable
- COLUMN: PUBLIC."libertybans_victims"."address" AS victim_address not nullable
- COLUMN: PUBLIC."libertybans_punishments"."operator" not nullable
- COLUMN: PUBLIC."libertybans_punishments"."reason" not nullable
- COLUMN: PUBLIC."libertybans_punishments"."scope" not nullable
- COLUMN: PUBLIC."libertybans_punishments"."start" not nullable
- COLUMN: PUBLIC."libertybans_punishments"."end" not nullable
- ]
- [range variable 1
- join type=INNER
- table=libertybans_mutes
- alias=thetype
- cardinality=0
- access=FULL SCAN
- join condition = [index=SYS_IDX_10172
- ]
- ] [range variable 2
- join type=INNER
- table=libertybans_punishments
- alias=puns
- cardinality=254
- access=INDEX PRED
- join condition = [index=libertybans_punishment_id_uniqueness
- start conditions=[
- EQUAL arg_left=[ COLUMN: PUBLIC."libertybans_punishments"."id"
- ] arg_right=[ COLUMN: PUBLIC."libertybans_mutes"."id"
- ]]
- ]
- ] [range variable 3
- join type=INNER
- table=libertybans_victims
- alias=victims
- cardinality=100
- access=INDEX PRED
- join condition = [index=libertybans_victim_id_uniqueness
- start conditions=[
- EQUAL arg_left=[ COLUMN: PUBLIC."libertybans_victims"."id"
- ] arg_right=[ COLUMN: PUBLIC."libertybans_mutes"."victim"
- ]]
- ]
- ] ]
- ]
- [level=1
- isDistinctSelect=[false]
- isGrouped=[false]
- isAggregated=[false]
- columns=[ COLUMN: PUBLIC."libertybans_simple_mutes"."id" nullable
- COLUMN: PUBLIC."libertybans_simple_mutes"."type" nullable
- COLUMN: PUBLIC."libertybans_simple_mutes"."victim_type" nullable
- COLUMN: PUBLIC."libertybans_simple_mutes"."victim_uuid" nullable
- COLUMN: PUBLIC."libertybans_simple_mutes"."victim_address" nullable
- COLUMN: PUBLIC."libertybans_simple_mutes"."operator" nullable
- COLUMN: PUBLIC."libertybans_simple_mutes"."reason" nullable
- COLUMN: PUBLIC."libertybans_simple_mutes"."scope" nullable
- COLUMN: PUBLIC."libertybans_simple_mutes"."start" nullable
- COLUMN: PUBLIC."libertybans_simple_mutes"."end" nullable
- COLUMN: PUBLIC."libertybans_addresses"."uuid" not nullable
- COLUMN: PUBLIC."libertybans_addresses"."address" not nullable
- ]
- [range variable 1
- join type=INNER
- table=libertybans_simple_mutes
- alias=puns
- cardinality=0
- access=FULL SCAN
- join condition = [index=SYS_IDX_10213
- ]
- ] [range variable 2
- join type=INNER
- table=libertybans_addresses
- alias=addrs
- cardinality=8959
- access=FULL SCAN
- join condition = [index=SYS_IDX_10127
- other condition=[
- OR arg_left=[
- OR arg_left=[
- AND arg_left=[
- EQUAL arg_left=[ COLUMN: PUBLIC."libertybans_simple_mutes"."victim_type"
- ] arg_right=[
- VALUE = 0, TYPE = INTEGER]] arg_right=[
- EQUAL arg_left=[ COLUMN: PUBLIC."libertybans_addresses"."uuid"
- ] arg_right=[ COLUMN: PUBLIC."libertybans_simple_mutes"."victim_uuid"
- ]]] arg_right=[
- AND arg_left=[
- EQUAL arg_left=[ COLUMN: PUBLIC."libertybans_simple_mutes"."victim_type"
- ] arg_right=[
- VALUE = 1, TYPE = INTEGER]] arg_right=[
- EQUAL arg_left=[ COLUMN: PUBLIC."libertybans_addresses"."address"
- ] arg_right=[ COLUMN: PUBLIC."libertybans_simple_mutes"."victim_address"
- ]]]] arg_right=[
- AND arg_left=[
- EQUAL arg_left=[ COLUMN: PUBLIC."libertybans_simple_mutes"."victim_type"
- ] arg_right=[
- VALUE = 2, TYPE = INTEGER]] arg_right=[
- OR arg_left=[
- EQUAL arg_left=[ COLUMN: PUBLIC."libertybans_addresses"."uuid"
- ] arg_right=[ COLUMN: PUBLIC."libertybans_simple_mutes"."victim_uuid"
- ]] arg_right=[
- EQUAL arg_left=[ COLUMN: PUBLIC."libertybans_addresses"."address"
- ] arg_right=[ COLUMN: PUBLIC."libertybans_simple_mutes"."victim_address"
- ]]]]]
- ]
- ] ]
- ]
- [level=1
- isDistinctSelect=[false]
- isGrouped=[false]
- isAggregated=[false]
- columns=[ COLUMN: PUBLIC."libertybans_punishments"."id" not nullable
- COLUMN: PUBLIC."libertybans_punishments"."type" not nullable
- COLUMN: PUBLIC."libertybans_victims"."type" AS victim_type not nullable
- COLUMN: PUBLIC."libertybans_victims"."uuid" AS victim_uuid not nullable
- COLUMN: PUBLIC."libertybans_victims"."address" AS victim_address not nullable
- COLUMN: PUBLIC."libertybans_punishments"."operator" not nullable
- COLUMN: PUBLIC."libertybans_punishments"."reason" not nullable
- COLUMN: PUBLIC."libertybans_punishments"."scope" not nullable
- COLUMN: PUBLIC."libertybans_punishments"."start" not nullable
- COLUMN: PUBLIC."libertybans_punishments"."end" not nullable
- ]
- [range variable 1
- join type=INNER
- table=libertybans_warns
- alias=thetype
- cardinality=4
- access=FULL SCAN
- join condition = [index=SYS_IDX_10179
- ]
- ] [range variable 2
- join type=INNER
- table=libertybans_punishments
- alias=puns
- cardinality=254
- access=INDEX PRED
- join condition = [index=libertybans_punishment_id_uniqueness
- start conditions=[
- EQUAL arg_left=[ COLUMN: PUBLIC."libertybans_punishments"."id"
- ] arg_right=[ COLUMN: PUBLIC."libertybans_warns"."id"
- ]]
- ]
- ] [range variable 3
- join type=INNER
- table=libertybans_victims
- alias=victims
- cardinality=100
- access=INDEX PRED
- join condition = [index=libertybans_victim_id_uniqueness
- start conditions=[
- EQUAL arg_left=[ COLUMN: PUBLIC."libertybans_victims"."id"
- ] arg_right=[ COLUMN: PUBLIC."libertybans_warns"."victim"
- ]]
- ]
- ] ]
- ]
- [level=1
- isDistinctSelect=[false]
- isGrouped=[false]
- isAggregated=[false]
- columns=[ COLUMN: PUBLIC."libertybans_simple_warns"."id" nullable
- COLUMN: PUBLIC."libertybans_simple_warns"."type" nullable
- COLUMN: PUBLIC."libertybans_simple_warns"."victim_type" nullable
- COLUMN: PUBLIC."libertybans_simple_warns"."victim_uuid" nullable
- COLUMN: PUBLIC."libertybans_simple_warns"."victim_address" nullable
- COLUMN: PUBLIC."libertybans_simple_warns"."operator" nullable
- COLUMN: PUBLIC."libertybans_simple_warns"."reason" nullable
- COLUMN: PUBLIC."libertybans_simple_warns"."scope" nullable
- COLUMN: PUBLIC."libertybans_simple_warns"."start" nullable
- COLUMN: PUBLIC."libertybans_simple_warns"."end" nullable
- COLUMN: PUBLIC."libertybans_addresses"."uuid" not nullable
- COLUMN: PUBLIC."libertybans_addresses"."address" not nullable
- ]
- [range variable 1
- join type=INNER
- table=libertybans_simple_warns
- alias=puns
- cardinality=0
- access=FULL SCAN
- join condition = [index=SYS_IDX_10223
- ]
- ] [range variable 2
- join type=INNER
- table=libertybans_addresses
- alias=addrs
- cardinality=8959
- access=FULL SCAN
- join condition = [index=SYS_IDX_10127
- other condition=[
- OR arg_left=[
- OR arg_left=[
- AND arg_left=[
- EQUAL arg_left=[ COLUMN: PUBLIC."libertybans_simple_warns"."victim_type"
- ] arg_right=[
- VALUE = 0, TYPE = INTEGER]] arg_right=[
- EQUAL arg_left=[ COLUMN: PUBLIC."libertybans_addresses"."uuid"
- ] arg_right=[ COLUMN: PUBLIC."libertybans_simple_warns"."victim_uuid"
- ]]] arg_right=[
- AND arg_left=[
- EQUAL arg_left=[ COLUMN: PUBLIC."libertybans_simple_warns"."victim_type"
- ] arg_right=[
- VALUE = 1, TYPE = INTEGER]] arg_right=[
- EQUAL arg_left=[ COLUMN: PUBLIC."libertybans_addresses"."address"
- ] arg_right=[ COLUMN: PUBLIC."libertybans_simple_warns"."victim_address"
- ]]]] arg_right=[
- AND arg_left=[
- EQUAL arg_left=[ COLUMN: PUBLIC."libertybans_simple_warns"."victim_type"
- ] arg_right=[
- VALUE = 2, TYPE = INTEGER]] arg_right=[
- OR arg_left=[
- EQUAL arg_left=[ COLUMN: PUBLIC."libertybans_addresses"."uuid"
- ] arg_right=[ COLUMN: PUBLIC."libertybans_simple_warns"."victim_uuid"
- ]] arg_right=[
- EQUAL arg_left=[ COLUMN: PUBLIC."libertybans_addresses"."address"
- ] arg_right=[ COLUMN: PUBLIC."libertybans_simple_warns"."victim_address"
- ]]]]]
- ]
- ] ]
- ]
- [level=1
- UNION ALL
- Left Query=[
- UNION ALL
- Left Query=[
- isDistinctSelect=[false]
- isGrouped=[false]
- isAggregated=[false]
- columns=[ COLUMN: PUBLIC."libertybans_applicable_bans"."id" nullable
- COLUMN: PUBLIC."libertybans_applicable_bans"."type" nullable
- COLUMN: PUBLIC."libertybans_applicable_bans"."victim_type" nullable
- COLUMN: PUBLIC."libertybans_applicable_bans"."victim_uuid" nullable
- COLUMN: PUBLIC."libertybans_applicable_bans"."victim_address" nullable
- COLUMN: PUBLIC."libertybans_applicable_bans"."operator" nullable
- COLUMN: PUBLIC."libertybans_applicable_bans"."reason" nullable
- COLUMN: PUBLIC."libertybans_applicable_bans"."scope" nullable
- COLUMN: PUBLIC."libertybans_applicable_bans"."start" nullable
- COLUMN: PUBLIC."libertybans_applicable_bans"."end" nullable
- COLUMN: PUBLIC."libertybans_applicable_bans"."uuid" nullable
- COLUMN: PUBLIC."libertybans_applicable_bans"."address" nullable
- ]
- [range variable 1
- join type=INNER
- table=libertybans_applicable_bans
- cardinality=0
- access=FULL SCAN
- join condition = [index=SYS_IDX_10287
- ]
- ] ]
- ]
- Right Query=[
- isDistinctSelect=[false]
- isGrouped=[false]
- isAggregated=[false]
- columns=[ COLUMN: PUBLIC."libertybans_applicable_mutes"."id" nullable
- COLUMN: PUBLIC."libertybans_applicable_mutes"."type" nullable
- COLUMN: PUBLIC."libertybans_applicable_mutes"."victim_type" nullable
- COLUMN: PUBLIC."libertybans_applicable_mutes"."victim_uuid" nullable
- COLUMN: PUBLIC."libertybans_applicable_mutes"."victim_address" nullable
- COLUMN: PUBLIC."libertybans_applicable_mutes"."operator" nullable
- COLUMN: PUBLIC."libertybans_applicable_mutes"."reason" nullable
- COLUMN: PUBLIC."libertybans_applicable_mutes"."scope" nullable
- COLUMN: PUBLIC."libertybans_applicable_mutes"."start" nullable
- COLUMN: PUBLIC."libertybans_applicable_mutes"."end" nullable
- COLUMN: PUBLIC."libertybans_applicable_mutes"."uuid" nullable
- COLUMN: PUBLIC."libertybans_applicable_mutes"."address" nullable
- ]
- [range variable 1
- join type=INNER
- table=libertybans_applicable_mutes
- cardinality=0
- access=FULL SCAN
- join condition = [index=SYS_IDX_10291
- ]
- ] ]
- ]
- ]
- Right Query=[
- isDistinctSelect=[false]
- isGrouped=[false]
- isAggregated=[false]
- columns=[ COLUMN: PUBLIC."libertybans_applicable_warns"."id" nullable
- COLUMN: PUBLIC."libertybans_applicable_warns"."type" nullable
- COLUMN: PUBLIC."libertybans_applicable_warns"."victim_type" nullable
- COLUMN: PUBLIC."libertybans_applicable_warns"."victim_uuid" nullable
- COLUMN: PUBLIC."libertybans_applicable_warns"."victim_address" nullable
- COLUMN: PUBLIC."libertybans_applicable_warns"."operator" nullable
- COLUMN: PUBLIC."libertybans_applicable_warns"."reason" nullable
- COLUMN: PUBLIC."libertybans_applicable_warns"."scope" nullable
- COLUMN: PUBLIC."libertybans_applicable_warns"."start" nullable
- COLUMN: PUBLIC."libertybans_applicable_warns"."end" nullable
- COLUMN: PUBLIC."libertybans_applicable_warns"."uuid" nullable
- COLUMN: PUBLIC."libertybans_applicable_warns"."address" nullable
- ]
- [range variable 1
- join type=INNER
- table=libertybans_applicable_warns
- cardinality=0
- access=FULL SCAN
- join condition = [index=SYS_IDX_10295
- ]
- ] ]
- ]
- ]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement