on
- {{ node[NodeProp.SCHEMA] }}.{{ node[NodeProp.RELATION_NAME] }}
- {{ node[NodeProp.FUNCTION_NAME] }}
-
+ {{ node[Property.SCHEMA] }}.{{ node[Property.RELATION_NAME] }}
+ {{ node[Property.FUNCTION_NAME] }}
+
as
- {{ node[NodeProp.ALIAS] }}
+ {{ node[Property.ALIAS] }}
on
by
by
using
on
-
diff --git a/src/components/PlanNodeDetail.vue b/src/components/PlanNodeDetail.vue
index 33017d7a..d0f03685 100644
--- a/src/components/PlanNodeDetail.vue
+++ b/src/components/PlanNodeDetail.vue
@@ -3,7 +3,7 @@ import { computed, inject, onBeforeMount, reactive, ref, watch } from "vue"
import { directive as vTippy } from "vue-tippy"
import type { Node, ViewOptions } from "@/interfaces"
import { getNodeTypeDescription } from "@/services/help-service"
-import { EstimateDirection, NodeProp } from "@/enums"
+import { EstimateDirection, Property } from "@/enums"
import useNode from "@/node"
import { store } from "@/store"
import IoTooltip from "@/components/tooltip/IoTooltip.vue"
@@ -37,7 +37,7 @@ const updateSize = inject<(node: Node) => null>("updateSize")
const node = reactive
(props.node)
const nodeProps = ref<
{
- key: keyof typeof NodeProp
+ key: keyof typeof Property
value: unknown
}[]
>()
@@ -78,16 +78,16 @@ const shouldShowPlannerEstimate = computed(() => {
// create an array of node propeties so that they can be displayed in the view
function calculateProps() {
nodeProps.value = _.chain(node)
- .omit(NodeProp.PLANS)
- .omit(NodeProp.WORKERS)
+ .omit(Property.PLANS)
+ .omit(Property.WORKERS)
.map((value, key) => {
- return { key: key as keyof typeof NodeProp, value }
+ return { key: key as keyof typeof Property, value }
})
.value()
}
const shouldShowIoBuffers = computed((): boolean => {
- const properties: Array = [
+ const properties: Array = [
"EXCLUSIVE_SHARED_HIT_BLOCKS",
"EXCLUSIVE_SHARED_READ_BLOCKS",
"EXCLUSIVE_SHARED_DIRTIED_BLOCKS",
@@ -102,7 +102,7 @@ const shouldShowIoBuffers = computed((): boolean => {
"EXCLUSIVE_IO_WRITE_TIME",
]
const values = _.map(properties, (property) => {
- const value = node[NodeProp[property]]
+ const value = node[Property[property]]
return _.isNaN(value) ? 0 : value
})
const sum = _.sum(values)
@@ -117,11 +117,11 @@ watch(activeTab, () => {
-
+
{
}"
>
-
+
{
>(Total: {{ formattedProp("TOTAL_COST") }})
-
+
{
@@ -334,7 +334,7 @@ watch(activeTab, () => {
{{ formattedProp("WAL_RECORDS") }} records
({{ formattedProp("WAL_BYTES") }})
-
+
-
FPI:
{{ formattedProp("WAL_FPI") }}
@@ -353,8 +353,8 @@ watch(activeTab, () => {
class="tab-pane"
:class="{ 'show active': activeTab === 'workers' }"
v-if="
- node[NodeProp.WORKERS_PLANNED] ||
- node[NodeProp.WORKERS_PLANNED_BY_GATHER]
+ node[Property.WORKERS_PLANNED] ||
+ node[Property.WORKERS_PLANNED_BY_GATHER]
"
>
diff --git a/src/components/PlanStats.vue b/src/components/PlanStats.vue
index 6ee984e2..21adbff3 100644
--- a/src/components/PlanStats.vue
+++ b/src/components/PlanStats.vue
@@ -1,13 +1,12 @@