@culpritsql/plan-viewer 0.0.0-stage → 0.5.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +205 -2
- package/package.json +57 -4
- package/pkg/ActualSummary.d.ts +10 -0
- package/pkg/ActualSummary.js +72 -0
- package/pkg/DeadlockGraph.d.ts +9 -0
- package/pkg/DeadlockGraph.js +135 -0
- package/pkg/DeadlockViewer.d.ts +20 -0
- package/pkg/DeadlockViewer.js +62 -0
- package/pkg/DocdbWork.d.ts +7 -0
- package/pkg/DocdbWork.js +37 -0
- package/pkg/NodeDetails.d.ts +15 -0
- package/pkg/NodeDetails.js +161 -0
- package/pkg/OpIcon.d.ts +9 -0
- package/pkg/OpIcon.js +54 -0
- package/pkg/PlanAssessmentNotes.d.ts +3 -0
- package/pkg/PlanAssessmentNotes.js +8 -0
- package/pkg/PlanCanvas.d.ts +47 -0
- package/pkg/PlanCanvas.js +9 -0
- package/pkg/PlanDiagram.d.ts +47 -0
- package/pkg/PlanDiagram.js +534 -0
- package/pkg/PlanDiffViewer.d.ts +31 -0
- package/pkg/PlanDiffViewer.js +317 -0
- package/pkg/PlanInsights.d.ts +6 -0
- package/pkg/PlanInsights.js +100 -0
- package/pkg/PlanObjects.d.ts +7 -0
- package/pkg/PlanObjects.js +138 -0
- package/pkg/PlanOperations.d.ts +8 -0
- package/pkg/PlanOperations.js +114 -0
- package/pkg/PlanRaw.d.ts +4 -0
- package/pkg/PlanRaw.js +35 -0
- package/pkg/PlanSurface.d.ts +21 -0
- package/pkg/PlanSurface.js +66 -0
- package/pkg/PlanTypeSchema.d.ts +5 -0
- package/pkg/PlanTypeSchema.js +62 -0
- package/pkg/PlanView.d.ts +27 -0
- package/pkg/PlanView.js +160 -0
- package/pkg/PlanViewer.d.ts +30 -0
- package/pkg/PlanViewer.js +19 -0
- package/pkg/Prose.d.ts +4 -0
- package/pkg/Prose.js +6 -0
- package/pkg/Sql.d.ts +5 -0
- package/pkg/Sql.js +7 -0
- package/pkg/THIRD-PARTY-LICENSES.txt +9021 -0
- package/pkg/build-report.json +907 -0
- package/pkg/defaults.d.ts +29 -0
- package/pkg/defaults.js +438 -0
- package/pkg/host.d.ts +118 -0
- package/pkg/host.js +593 -0
- package/pkg/index.d.ts +22 -0
- package/pkg/index.js +21 -0
- package/pkg/models/Ability.d.ts +6 -0
- package/pkg/models/ActualSummary.d.ts +16 -0
- package/pkg/models/CachedStatementContext.d.ts +9 -0
- package/pkg/models/CachedStatementIdentity.d.ts +7 -0
- package/pkg/models/ChangeKind.d.ts +3 -0
- package/pkg/models/CleanupEvidence.d.ts +6 -0
- package/pkg/models/CollectionTarget.d.ts +5 -0
- package/pkg/models/CompilationMemory.d.ts +3 -0
- package/pkg/models/CompileHistory.d.ts +13 -0
- package/pkg/models/Connect.d.ts +22 -0
- package/pkg/models/ConnectionSecurityMode.d.ts +3 -0
- package/pkg/models/ConnectionSecuritySpec.d.ts +4 -0
- package/pkg/models/ConstraintValidation.d.ts +6 -0
- package/pkg/models/DatabaseIdentity.d.ts +5 -0
- package/pkg/models/DatabaseLocation.d.ts +3 -0
- package/pkg/models/DatabaseProduct.d.ts +6 -0
- package/pkg/models/Deadlock.d.ts +23 -0
- package/pkg/models/DeadlockFix.d.ts +16 -0
- package/pkg/models/DeadlockFixKind.d.ts +6 -0
- package/pkg/models/DeadlockPattern.d.ts +3 -0
- package/pkg/models/DeadlockProcess.d.ts +23 -0
- package/pkg/models/DeadlockResource.d.ts +12 -0
- package/pkg/models/DistributionPopulation.d.ts +3 -0
- package/pkg/models/DocdbMetrics.d.ts +7 -0
- package/pkg/models/Engine.d.ts +3 -0
- package/pkg/models/EngineAbilities.d.ts +46 -0
- package/pkg/models/EngineFacts.d.ts +28 -0
- package/pkg/models/EvidencePresentation.d.ts +4 -0
- package/pkg/models/ExecutionProtection.d.ts +3 -0
- package/pkg/models/Guess.d.ts +6 -0
- package/pkg/models/InsightArea.d.ts +6 -0
- package/pkg/models/LocalizedText.d.ts +4 -0
- package/pkg/models/LockHolder.d.ts +3 -0
- package/pkg/models/LogRateGovernanceReason.d.ts +7 -0
- package/pkg/models/Message.d.ts +4 -0
- package/pkg/models/MessageValue.d.ts +4 -0
- package/pkg/models/Metric.d.ts +10 -0
- package/pkg/models/MssqlCatalogIndexColumn.d.ts +3 -0
- package/pkg/models/MssqlCurrentTableType.d.ts +10 -0
- package/pkg/models/MssqlCurrentTypeColumn.d.ts +7 -0
- package/pkg/models/MssqlCurrentTypeIndex.d.ts +4 -0
- package/pkg/models/MssqlCurrentTypeModule.d.ts +4 -0
- package/pkg/models/MssqlCurrentTypeParameter.d.ts +3 -0
- package/pkg/models/MssqlCurrentTypeSchema.d.ts +11 -0
- package/pkg/models/MssqlCurrentTypeSchemaStatus.d.ts +3 -0
- package/pkg/models/MssqlIndexParentKind.d.ts +3 -0
- package/pkg/models/MssqlObjectIdentity.d.ts +7 -0
- package/pkg/models/NativeIdentity.d.ts +3 -0
- package/pkg/models/NativePlanIdentity.d.ts +4 -0
- package/pkg/models/NativeQueryIdentity.d.ts +3 -0
- package/pkg/models/NativeReadContext.d.ts +13 -0
- package/pkg/models/NodeKind.d.ts +3 -0
- package/pkg/models/NodeMatch.d.ts +3 -0
- package/pkg/models/NodeRuntime.d.ts +28 -0
- package/pkg/models/PageServerReadAvailability.d.ts +3 -0
- package/pkg/models/PageServerReadStatistics.d.ts +8 -0
- package/pkg/models/PageServerReadSummary.d.ts +19 -0
- package/pkg/models/PartitionTail.d.ts +6 -0
- package/pkg/models/Plan.d.ts +11 -0
- package/pkg/models/PlanAccessRows.d.ts +13 -0
- package/pkg/models/PlanAutomaticIndex.d.ts +3 -0
- package/pkg/models/PlanChange.d.ts +17 -0
- package/pkg/models/PlanChangedColumn.d.ts +3 -0
- package/pkg/models/PlanConversion.d.ts +4 -0
- package/pkg/models/PlanConversionIssue.d.ts +3 -0
- package/pkg/models/PlanCurrentTypeSchemaView.d.ts +6 -0
- package/pkg/models/PlanDiff.d.ts +13 -0
- package/pkg/models/PlanExecutionMode.d.ts +3 -0
- package/pkg/models/PlanFacts.d.ts +36 -0
- package/pkg/models/PlanHistory.d.ts +6 -0
- package/pkg/models/PlanHistoryKind.d.ts +3 -0
- package/pkg/models/PlanIndexColumns.d.ts +3 -0
- package/pkg/models/PlanIndexHint.d.ts +3 -0
- package/pkg/models/PlanInsight.d.ts +44 -0
- package/pkg/models/PlanInsightShare.d.ts +3 -0
- package/pkg/models/PlanInsights.d.ts +8 -0
- package/pkg/models/PlanKind.d.ts +3 -0
- package/pkg/models/PlanMeasurementRef.d.ts +3 -0
- package/pkg/models/PlanMemoryGrantFeedback.d.ts +15 -0
- package/pkg/models/PlanMemoryGrantFeedbackIssue.d.ts +3 -0
- package/pkg/models/PlanMemoryGrantFeedbackState.d.ts +3 -0
- package/pkg/models/PlanNode.d.ts +7 -0
- package/pkg/models/PlanNodeFacts.d.ts +63 -0
- package/pkg/models/PlanOperatorView.d.ts +5 -0
- package/pkg/models/PlanPageServerIo.d.ts +16 -0
- package/pkg/models/PlanPageServerIoIssue.d.ts +4 -0
- package/pkg/models/PlanPageServerIoView.d.ts +7 -0
- package/pkg/models/PlanPageServerMetric.d.ts +3 -0
- package/pkg/models/PlanParameter.d.ts +10 -0
- package/pkg/models/PlanParameterComparison.d.ts +3 -0
- package/pkg/models/PlanParameterContext.d.ts +15 -0
- package/pkg/models/PlanParameterIssue.d.ts +3 -0
- package/pkg/models/PlanParameterUse.d.ts +4 -0
- package/pkg/models/PlanParameterUseKind.d.ts +3 -0
- package/pkg/models/PlanParameterValueState.d.ts +3 -0
- package/pkg/models/PlanParentRelationship.d.ts +3 -0
- package/pkg/models/PlanRegion.d.ts +7 -0
- package/pkg/models/PlanSampleSource.d.ts +6 -0
- package/pkg/models/PlanScanCompletion.d.ts +8 -0
- package/pkg/models/PlanScanThread.d.ts +3 -0
- package/pkg/models/PlanTemporaryTableUse.d.ts +7 -0
- package/pkg/models/PlanVariant.d.ts +23 -0
- package/pkg/models/PlanView.d.ts +9 -0
- package/pkg/models/PlanWarning.d.ts +3 -0
- package/pkg/models/PlanningStep.d.ts +7 -0
- package/pkg/models/ProductFacts.d.ts +11 -0
- package/pkg/models/QueryCosts.d.ts +62 -0
- package/pkg/models/QueryStat.d.ts +69 -0
- package/pkg/models/QueryTrend.d.ts +7 -0
- package/pkg/models/QueryVariantFamily.d.ts +9 -0
- package/pkg/models/QueryWaitCoverage.d.ts +8 -0
- package/pkg/models/ReadUnit.d.ts +7 -0
- package/pkg/models/Refusal.d.ts +7 -0
- package/pkg/models/RelationalInput.d.ts +5 -0
- package/pkg/models/RelationalInputKind.d.ts +3 -0
- package/pkg/models/RelationalInputProvenance.d.ts +3 -0
- package/pkg/models/RequestEvidence.d.ts +7 -0
- package/pkg/models/RetainedPlanProvenance.d.ts +11 -0
- package/pkg/models/RuntimeDistribution.d.ts +16 -0
- package/pkg/models/RuntimeDistributionIssue.d.ts +3 -0
- package/pkg/models/RuntimeDistributionOrigin.d.ts +3 -0
- package/pkg/models/RuntimeDuration.d.ts +3 -0
- package/pkg/models/RuntimeHistogramBucket.d.ts +8 -0
- package/pkg/models/RuntimeQuantile.d.ts +4 -0
- package/pkg/models/Scenario.d.ts +11 -0
- package/pkg/models/ScenarioKind.d.ts +3 -0
- package/pkg/models/SessionAction.d.ts +6 -0
- package/pkg/models/SessionIdFormat.d.ts +6 -0
- package/pkg/models/Severity.d.ts +3 -0
- package/pkg/models/SharedResourceIdentity.d.ts +11 -0
- package/pkg/models/SharedResourceKind.d.ts +3 -0
- package/pkg/models/SourcePartition.d.ts +8 -0
- package/pkg/models/Spread.d.ts +18 -0
- package/pkg/models/SqlSyntax.d.ts +6 -0
- package/pkg/models/StatementMetrics.d.ts +32 -0
- package/pkg/models/StatementOrigin.d.ts +6 -0
- package/pkg/models/StatementTemporaryWork.d.ts +3 -0
- package/pkg/models/StatisticsFreshness.d.ts +3 -0
- package/pkg/models/TriggerTiming.d.ts +3 -0
- package/pkg/models/Unit.d.ts +3 -0
- package/pkg/models/WaitClass.d.ts +3 -0
- package/pkg/models/WaitMechanism.d.ts +4 -0
- package/pkg/models/WaitSampling.d.ts +3 -0
- package/pkg/models/WaitStat.d.ts +4 -0
- package/pkg/models/WorkerSkew.d.ts +3 -0
- package/pkg/models/WriteLog.d.ts +7 -0
- package/pkg/models/WriteRows.d.ts +7 -0
- package/pkg/styles.css +3273 -0
- package/pkg/types.d.ts +29 -0
- package/pkg/types.js +1 -0
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { Engine } from "./types.js";
|
|
2
|
+
export type ViewerEngineSpec = {
|
|
3
|
+
label: string;
|
|
4
|
+
abilities: {
|
|
5
|
+
plan_estimates: boolean;
|
|
6
|
+
};
|
|
7
|
+
products: {
|
|
8
|
+
id: string;
|
|
9
|
+
label: string;
|
|
10
|
+
prefix: string | null;
|
|
11
|
+
}[];
|
|
12
|
+
evidence_presentation: {
|
|
13
|
+
generic_plan_context: string;
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
export type ViewerLocaleMeta = {
|
|
17
|
+
plural: string;
|
|
18
|
+
decimal: string;
|
|
19
|
+
group: string;
|
|
20
|
+
direction?: "ltr" | "rtl";
|
|
21
|
+
};
|
|
22
|
+
export type CardinalRelation = [string, number, boolean, [number, number][]];
|
|
23
|
+
export type PluralCategory = "zero" | "one" | "two" | "few" | "many" | "other";
|
|
24
|
+
export type CardinalCase = [PluralCategory, CardinalRelation[][]];
|
|
25
|
+
export declare const DEFAULT_ENGINES: Record<Engine, ViewerEngineSpec>;
|
|
26
|
+
export declare const DEFAULT_LOCALE: ViewerLocaleMeta;
|
|
27
|
+
export declare const DEFAULT_MESSAGES: Record<string, string>;
|
|
28
|
+
export declare const CARDINAL_LANGUAGES: Record<string, number>;
|
|
29
|
+
export declare const CARDINAL_RULES: CardinalCase[][];
|
package/pkg/defaults.js
ADDED
|
@@ -0,0 +1,438 @@
|
|
|
1
|
+
export const DEFAULT_ENGINES = { "mssql": { "label": "SQL Server", "abilities": { "plan_estimates": true }, "products": [{ "id": "mssql", "label": "SQL Server", "prefix": null }], "evidence_presentation": { "generic_plan_context": "ui.plan_surface.generic_settings" } }, "mysql": { "label": "MySQL", "abilities": { "plan_estimates": true }, "products": [{ "id": "mysql", "label": "MySQL", "prefix": null }, { "id": "mariadb", "label": "MariaDB", "prefix": "MariaDB" }], "evidence_presentation": { "generic_plan_context": "ui.plan_surface.generic_settings" } }, "postgres": { "label": "PostgreSQL", "abilities": { "plan_estimates": true }, "products": [{ "id": "postgres", "label": "PostgreSQL", "prefix": null }, { "id": "timescale", "label": "TimescaleDB", "prefix": "TimescaleDB" }], "evidence_presentation": { "generic_plan_context": "ui.plan_surface.generic_settings" } }, "sqlite": { "label": "SQLite", "abilities": { "plan_estimates": false }, "products": [{ "id": "sqlite", "label": "SQLite", "prefix": null }], "evidence_presentation": { "generic_plan_context": "ui.plan_surface.generic_sqlite" } }, "yugabyte": { "label": "YugabyteDB", "abilities": { "plan_estimates": true }, "products": [{ "id": "yugabyte", "label": "YugabyteDB", "prefix": null }], "evidence_presentation": { "generic_plan_context": "ui.plan_surface.generic_settings" } } };
|
|
2
|
+
export const DEFAULT_LOCALE = { "plural": "en", "decimal": ".", "group": ",", "direction": "ltr" };
|
|
3
|
+
export const DEFAULT_MESSAGES = {
|
|
4
|
+
"common.metric.runs": "Runs",
|
|
5
|
+
"ui.actual_summary.across_workers": "Across {workers} worker threads",
|
|
6
|
+
"ui.actual_summary.calls": "{n, plural, one {{calls} call} other {{calls} calls}}",
|
|
7
|
+
"ui.actual_summary.calls_unrecorded": "call count not recorded",
|
|
8
|
+
"ui.actual_summary.cpu": "CPU",
|
|
9
|
+
"ui.actual_summary.elapsed": "Elapsed time of the statement",
|
|
10
|
+
"ui.actual_summary.estimate": "Expected {expected}, got {actual} at {operator} · ×{factor} off",
|
|
11
|
+
"ui.actual_summary.estimate_hint": "The optimizer chose this plan for a row count that turned out wrong; that is often why a plan is slow",
|
|
12
|
+
"ui.actual_summary.measured_run": "Measured run",
|
|
13
|
+
"ui.actual_summary.memory": "Memory",
|
|
14
|
+
"ui.actual_summary.memory_hint": "Memory SQL Server reserved for sorts and hashes, and how much the run actually used",
|
|
15
|
+
"ui.actual_summary.memory_idle": "{share} sat idle, other queries may have waited for it",
|
|
16
|
+
"ui.actual_summary.memory_unrecorded": "Memory granted: {granted}. Memory used was not recorded.",
|
|
17
|
+
"ui.actual_summary.memory_used": "used {used} of {granted} granted",
|
|
18
|
+
"ui.actual_summary.op_on": "{op} on {table}",
|
|
19
|
+
"ui.actual_summary.reads": "reads",
|
|
20
|
+
"ui.actual_summary.reads_from_disk": "reads · {disk} from disk",
|
|
21
|
+
"ui.actual_summary.reads_hint": "Pages (SQL Server) or buffers (PostgreSQL) read, from memory or disk",
|
|
22
|
+
"ui.actual_summary.rows": "{n, plural, one {row} other {rows}}",
|
|
23
|
+
"ui.actual_summary.skew": "One of {threads} workers did {share} of {operator}",
|
|
24
|
+
"ui.actual_summary.skew_hint": "Parallel work was uneven, so the other workers mostly waited",
|
|
25
|
+
"ui.actual_summary.slowest": "Most operator time: {operator} · {time} ({share} of timed operators)",
|
|
26
|
+
"ui.actual_summary.slowest_hint": "The step that spent the most time on its own work, not counting its inputs",
|
|
27
|
+
"ui.actual_summary.spill": "Ran out of memory and spilled to disk",
|
|
28
|
+
"ui.actual_summary.spill_hint": "A sort or hash didn't fit in its memory grant and used tempdb / temp files instead",
|
|
29
|
+
"ui.actual_summary.spill_pages": "{n, plural, one {Ran out of memory and wrote {pages} page to disk} other {Ran out of memory and wrote {pages} pages to disk}}",
|
|
30
|
+
"ui.actual_summary.trigger_on": "{trigger} on {relation}",
|
|
31
|
+
"ui.actual_summary.triggers": "Trigger work",
|
|
32
|
+
"ui.actual_summary.triggers_label": "Measured trigger work",
|
|
33
|
+
"ui.actual_summary.triggers_note": "AFTER trigger time is outside the operator tree. BEFORE trigger time also appears in its modifying operator; these totals must not be added together.",
|
|
34
|
+
"ui.actual_summary.untimed_past": "Actual row counts only: SQL Server keeps rows, not time, for past runs. Shares are of the estimated cost.",
|
|
35
|
+
"ui.actual_summary.untimed_run": "Actual row counts only: this run reported no per-step time. Shares are of the estimated cost.",
|
|
36
|
+
"ui.actual_summary.workers": "{n, plural, one {worker} other {workers}}",
|
|
37
|
+
"ui.common.copied": "Copied",
|
|
38
|
+
"ui.common.copy": "Copy",
|
|
39
|
+
"ui.common.last_run": "Last run",
|
|
40
|
+
"ui.common.no": "No",
|
|
41
|
+
"ui.common.plan_cost": "cost {cost}",
|
|
42
|
+
"ui.common.plan_cost_unavailable": "cost unavailable",
|
|
43
|
+
"ui.common.plan_filter": "filter {predicate}",
|
|
44
|
+
"ui.common.plan_kind.actual": "Actual plan",
|
|
45
|
+
"ui.common.plan_kind.estimated": "Estimated plan",
|
|
46
|
+
"ui.common.plan_kind.generic": "Generic plan",
|
|
47
|
+
"ui.common.plan_operators": "{count, plural, one {# operator} other {# operators}}",
|
|
48
|
+
"ui.common.plan_seek": "seek {predicate}",
|
|
49
|
+
"ui.common.unknown": "Unknown",
|
|
50
|
+
"ui.common.yes": "Yes",
|
|
51
|
+
"ui.deadlock_graph.edge": "{kind, select, holds {holds} other {wants}}",
|
|
52
|
+
"ui.deadlock_graph.edge_mode": "{kind, select, holds {holds {mode}} other {wants {mode}}}",
|
|
53
|
+
"ui.deadlock_graph.edge_title": "{kind, select, holds {Holds} other {Wants}}",
|
|
54
|
+
"ui.deadlock_graph.edge_title_mode": "{kind, select, holds {Holds {mode}} other {Wants {mode}}}",
|
|
55
|
+
"ui.deadlock_graph.hint": "Hover or focus a box to follow its locks.",
|
|
56
|
+
"ui.deadlock_graph.label": "Deadlock graph: {headline}",
|
|
57
|
+
"ui.deadlock_graph.lock_label": "Lock on {object} {scope}",
|
|
58
|
+
"ui.deadlock_graph.lock_title": "{object}\nheld by {held} · wanted as {wanted}",
|
|
59
|
+
"ui.deadlock_graph.lock_title_scope": "{object} ({scope})\nheld by {held} · wanted as {wanted}",
|
|
60
|
+
"ui.deadlock_graph.process": "Process {process}",
|
|
61
|
+
"ui.deadlock_graph.process_label": "{process}: {statement}",
|
|
62
|
+
"ui.deadlock_graph.process_label_victim": "{process}, rolled back: {statement}",
|
|
63
|
+
"ui.deadlock_graph.rolled_back": "rolled back",
|
|
64
|
+
"ui.deadlock_graph.scope.page": "page",
|
|
65
|
+
"ui.deadlock_graph.scope.row": "row",
|
|
66
|
+
"ui.deadlock_graph.scope.table": "table",
|
|
67
|
+
"ui.deadlock_graph.scope.transaction": "row (transaction)",
|
|
68
|
+
"ui.deadlock_graph.session": "Session {session}",
|
|
69
|
+
"ui.deadlock_graph.statement_unknown": "statement unknown",
|
|
70
|
+
"ui.deadlocks.copy_sql": "Copy SQL",
|
|
71
|
+
"ui.deadlocks.how_to_fix": "How to fix it",
|
|
72
|
+
"ui.deadlocks.in_procedure": "in {procedure}",
|
|
73
|
+
"ui.deadlocks.involved": "Who was involved",
|
|
74
|
+
"ui.deadlocks.no_statement": "The engine didn't record the statement.",
|
|
75
|
+
"ui.deadlocks.pasted": "Pasted",
|
|
76
|
+
"ui.deadlocks.pattern.cycle": "Lock cycle",
|
|
77
|
+
"ui.deadlocks.pattern.key_lookup": "Key lookup",
|
|
78
|
+
"ui.deadlocks.pattern.lock_conversion": "Read, then update",
|
|
79
|
+
"ui.deadlocks.pattern.lock_escalation": "Lock escalation",
|
|
80
|
+
"ui.deadlocks.pattern.opposite_order": "Opposite order",
|
|
81
|
+
"ui.deadlocks.pattern.parallelism": "Parallelism",
|
|
82
|
+
"ui.deadlocks.process": "Process {id}",
|
|
83
|
+
"ui.deadlocks.rolled_back": "rolled back",
|
|
84
|
+
"ui.deadlocks.session": "Session {session}",
|
|
85
|
+
"ui.deadlocks.time_unknown": "Time unknown",
|
|
86
|
+
"ui.deadlocks.time_unknown_full": "The engine didn't record when",
|
|
87
|
+
"ui.deadlocks.today": "Today {time}",
|
|
88
|
+
"ui.deadlocks.wanted": "wanted {mode}",
|
|
89
|
+
"ui.docdb_work.catalog_ms": "Catalog time",
|
|
90
|
+
"ui.docdb_work.conflict_retries": "Conflict retries",
|
|
91
|
+
"ui.docdb_work.foot": "{basis, select, per_run {Average per statement run} retained {Retained totals} per_loop {Average per operator loop} other {This measured execution}}. Storage entries can include index and table reads of the same SQL row. Timings can overlap and are not exclusive shares of run time.",
|
|
92
|
+
"ui.docdb_work.nexts": "LSM nexts",
|
|
93
|
+
"ui.docdb_work.obsolete_rows_scanned": "Obsolete entries scanned",
|
|
94
|
+
"ui.docdb_work.prevs": "LSM previous steps",
|
|
95
|
+
"ui.docdb_work.read_ms": "Storage read time",
|
|
96
|
+
"ui.docdb_work.read_operations": "Read operations",
|
|
97
|
+
"ui.docdb_work.read_requests": "Read RPCs",
|
|
98
|
+
"ui.docdb_work.read_restarts": "Read restarts",
|
|
99
|
+
"ui.docdb_work.retries": "Retries",
|
|
100
|
+
"ui.docdb_work.rows_returned": "Storage rows returned",
|
|
101
|
+
"ui.docdb_work.rows_scanned": "Storage entries scanned",
|
|
102
|
+
"ui.docdb_work.seeks": "LSM seeks",
|
|
103
|
+
"ui.docdb_work.title": "DocDB work",
|
|
104
|
+
"ui.docdb_work.wait_ms": "DocDB wait time",
|
|
105
|
+
"ui.docdb_work.write_ms": "Storage write time",
|
|
106
|
+
"ui.docdb_work.write_operations": "Write operations",
|
|
107
|
+
"ui.docdb_work.write_requests": "Write RPCs",
|
|
108
|
+
"ui.format.count.billions": "{value}B",
|
|
109
|
+
"ui.format.count.millions": "{value}M",
|
|
110
|
+
"ui.format.count.thousands": "{value}K",
|
|
111
|
+
"ui.format.days": "{n, plural, one {{count} day} other {{count} days}}",
|
|
112
|
+
"ui.format.duration.h": "{hours} h",
|
|
113
|
+
"ui.format.duration.h_min": "{hours} h {minutes} min",
|
|
114
|
+
"ui.format.duration.min": "{value} min",
|
|
115
|
+
"ui.format.duration.ms": "{value} ms",
|
|
116
|
+
"ui.format.duration.s": "{value} s",
|
|
117
|
+
"ui.format.duration.us": "{value} µs",
|
|
118
|
+
"ui.format.percent.under": "<{value}%",
|
|
119
|
+
"ui.format.percent.value": "{value}%",
|
|
120
|
+
"ui.format.row_count": "{n, plural, one {{count} row} other {{count} rows}}",
|
|
121
|
+
"ui.format.when.this_year": "{date}, {time}",
|
|
122
|
+
"ui.format.when.today": "today {time}",
|
|
123
|
+
"ui.format.when.yesterday": "yesterday {time}",
|
|
124
|
+
"ui.node_details.actual": "Actual",
|
|
125
|
+
"ui.node_details.actual_time": "Actual time",
|
|
126
|
+
"ui.node_details.all_properties": "All properties",
|
|
127
|
+
"ui.node_details.cache_hit_share": "Cache {share}",
|
|
128
|
+
"ui.node_details.cost": "Cost",
|
|
129
|
+
"ui.node_details.cost_unavailable": "cost unavailable",
|
|
130
|
+
"ui.node_details.cpu_share": "CPU {share}",
|
|
131
|
+
"ui.node_details.cpu_time": "CPU time",
|
|
132
|
+
"ui.node_details.disk_read_share": "Disk {share}",
|
|
133
|
+
"ui.node_details.estimated": "Estimated",
|
|
134
|
+
"ui.node_details.estimated_hint": "Rows per run as estimated, times the runs that happened",
|
|
135
|
+
"ui.node_details.execution_mode": "Execution mode",
|
|
136
|
+
"ui.node_details.expected_runs": "Expected runs",
|
|
137
|
+
"ui.node_details.expected_to_read": "Expected to read",
|
|
138
|
+
"ui.node_details.fewer_than_expected": "×{factor} fewer than expected",
|
|
139
|
+
"ui.node_details.filtered_out": "Thrown away by the filter",
|
|
140
|
+
"ui.node_details.find_property": "Find a property",
|
|
141
|
+
"ui.node_details.from_cache": "From cache",
|
|
142
|
+
"ui.node_details.from_disk": "From disk",
|
|
143
|
+
"ui.node_details.heap_fetches": "Heap fetches",
|
|
144
|
+
"ui.node_details.in_table": "In the table",
|
|
145
|
+
"ui.node_details.index_condition": "Index condition",
|
|
146
|
+
"ui.node_details.io_buffers": "Buffers & I/O",
|
|
147
|
+
"ui.node_details.io_read_time": "I/O read time",
|
|
148
|
+
"ui.node_details.io_share": "I/O {share}",
|
|
149
|
+
"ui.node_details.io_write_time": "I/O write time",
|
|
150
|
+
"ui.node_details.logical_reads": "Buffers / pages read",
|
|
151
|
+
"ui.node_details.mode_batch": "Batch",
|
|
152
|
+
"ui.node_details.mode_row": "Row",
|
|
153
|
+
"ui.node_details.more_than_expected": "×{factor} more than expected",
|
|
154
|
+
"ui.node_details.no_share": "no share",
|
|
155
|
+
"ui.node_details.no_share_of_work": "no share of the work",
|
|
156
|
+
"ui.node_details.of_the_work": "of the work",
|
|
157
|
+
"ui.node_details.parallelism": "Parallelism",
|
|
158
|
+
"ui.node_details.ran": "Ran",
|
|
159
|
+
"ui.node_details.read": "Read",
|
|
160
|
+
"ui.node_details.rows": "Rows",
|
|
161
|
+
"ui.node_details.seeks_on": "Seeks on",
|
|
162
|
+
"ui.node_details.share_hint": "Share of the plan's work done by this operator itself",
|
|
163
|
+
"ui.node_details.sort_memory": "Sort space",
|
|
164
|
+
"ui.node_details.spill_pages": "Temp spill pages",
|
|
165
|
+
"ui.node_details.split_hint": "CPU {cpu} · I/O {io} of the estimate",
|
|
166
|
+
"ui.node_details.then_filters": "Then filters",
|
|
167
|
+
"ui.node_details.this_operator": "This operator",
|
|
168
|
+
"ui.node_details.times": "{n, plural, one {{count} time} other {{count} times}}",
|
|
169
|
+
"ui.node_details.units": "{cost} units",
|
|
170
|
+
"ui.node_details.wal_bytes": "WAL written",
|
|
171
|
+
"ui.node_details.warning.implicit_conversion": "Type conversion in a comparison",
|
|
172
|
+
"ui.node_details.warning.memory_grant": "Memory grant warning",
|
|
173
|
+
"ui.node_details.warning.misestimate": "Actual rows far from the estimate",
|
|
174
|
+
"ui.node_details.warning.missing_statistics": "Columns without statistics",
|
|
175
|
+
"ui.node_details.warning.no_join_predicate": "Join without a condition",
|
|
176
|
+
"ui.node_details.warning.residual_predicate": "Filters after reading most rows",
|
|
177
|
+
"ui.node_details.warning.spill": "Spilled to disk",
|
|
178
|
+
"ui.node_details.warnings": "Warnings",
|
|
179
|
+
"ui.node_details.what_it_does": "What it does",
|
|
180
|
+
"ui.node_details.with_inputs": "With its inputs",
|
|
181
|
+
"ui.node_details.work_memory": "Memory used",
|
|
182
|
+
"ui.node_details.worker_rows": "Worker {worker}",
|
|
183
|
+
"ui.node_details.workers_launched": "Workers launched",
|
|
184
|
+
"ui.node_details.workers_of_planned": "{launched} of {planned}",
|
|
185
|
+
"ui.plan_compare.change.access": "Access",
|
|
186
|
+
"ui.plan_compare.change.added": "Added",
|
|
187
|
+
"ui.plan_compare.change.cost": "Cost",
|
|
188
|
+
"ui.plan_compare.change.operator": "Operator",
|
|
189
|
+
"ui.plan_compare.change.removed": "Removed",
|
|
190
|
+
"ui.plan_compare.change.rows": "Rows",
|
|
191
|
+
"ui.plan_compare.change.warning": "Warning",
|
|
192
|
+
"ui.plan_compare.details": "Comparison details",
|
|
193
|
+
"ui.plan_compare.diagram": "Diagram",
|
|
194
|
+
"ui.plan_compare.differ_count": "{n, plural, one {{count} differs} other {{count} differ}}",
|
|
195
|
+
"ui.plan_compare.differs": "differs",
|
|
196
|
+
"ui.plan_compare.engine_props": "Engine properties",
|
|
197
|
+
"ui.plan_compare.figure.cost": "cost · {plan}",
|
|
198
|
+
"ui.plan_compare.figure.operators": "operators",
|
|
199
|
+
"ui.plan_compare.figure.regions": "identical regions",
|
|
200
|
+
"ui.plan_compare.figure.time": "time · {plan}",
|
|
201
|
+
"ui.plan_compare.group.cost": "Cost",
|
|
202
|
+
"ui.plan_compare.group.does": "What it does",
|
|
203
|
+
"ui.plan_compare.group.rows": "Rows",
|
|
204
|
+
"ui.plan_compare.group.warnings": "Warnings",
|
|
205
|
+
"ui.plan_compare.hide_identical": "Hide {count} identical",
|
|
206
|
+
"ui.plan_compare.legend.changed": "Changed operator or index",
|
|
207
|
+
"ui.plan_compare.legend.only": "Only in this plan",
|
|
208
|
+
"ui.plan_compare.legend.same": "Same color: the same steps in both plans",
|
|
209
|
+
"ui.plan_compare.minor_steps": "Only minor steps differ.",
|
|
210
|
+
"ui.plan_compare.only_in": "only in {plan}",
|
|
211
|
+
"ui.plan_compare.plan_a": "plan A",
|
|
212
|
+
"ui.plan_compare.plan_b": "plan B",
|
|
213
|
+
"ui.plan_compare.plan_view": "Plan view",
|
|
214
|
+
"ui.plan_compare.prop.act_rows": "Actual rows",
|
|
215
|
+
"ui.plan_compare.prop.act_time": "Actual time",
|
|
216
|
+
"ui.plan_compare.prop.cost_share": "Share of the plan's cost",
|
|
217
|
+
"ui.plan_compare.prop.est_executions": "Estimated executions",
|
|
218
|
+
"ui.plan_compare.prop.est_rows": "Estimated rows",
|
|
219
|
+
"ui.plan_compare.prop.filter": "Filter",
|
|
220
|
+
"ui.plan_compare.prop.index": "Index",
|
|
221
|
+
"ui.plan_compare.prop.operator": "Operator",
|
|
222
|
+
"ui.plan_compare.prop.rows_read": "Rows read",
|
|
223
|
+
"ui.plan_compare.prop.seek": "Seek on",
|
|
224
|
+
"ui.plan_compare.prop.subtree_cost": "Subtree cost",
|
|
225
|
+
"ui.plan_compare.prop.table": "Table",
|
|
226
|
+
"ui.plan_compare.prop.table_rows": "Rows in table",
|
|
227
|
+
"ui.plan_compare.prop.warnings": "Warnings",
|
|
228
|
+
"ui.plan_compare.same": "same",
|
|
229
|
+
"ui.plan_compare.same_conditions": "Nothing in the conditions differs.",
|
|
230
|
+
"ui.plan_compare.same_conditions_detail": "Same estimator, parameter values, memory and parallelism, as far as the plans say. The difference is in the steps under “What changed”.",
|
|
231
|
+
"ui.plan_compare.same_steps": "Same steps in both plans.",
|
|
232
|
+
"ui.plan_compare.same_steps_detail": "Any difference in speed comes from the data or the server, not from the plan.",
|
|
233
|
+
"ui.plan_compare.scenario.conversion": "Types",
|
|
234
|
+
"ui.plan_compare.scenario.estimates": "Estimates",
|
|
235
|
+
"ui.plan_compare.scenario.estimator": "Estimator",
|
|
236
|
+
"ui.plan_compare.scenario.index": "Indexes",
|
|
237
|
+
"ui.plan_compare.scenario.memory": "Memory",
|
|
238
|
+
"ui.plan_compare.scenario.parallelism": "Parallelism",
|
|
239
|
+
"ui.plan_compare.scenario.parameters": "Parameters",
|
|
240
|
+
"ui.plan_compare.scenario.plan_kind": "Plan kind",
|
|
241
|
+
"ui.plan_compare.scenario.statement": "Statement",
|
|
242
|
+
"ui.plan_compare.select_step": "Select a step in either plan.",
|
|
243
|
+
"ui.plan_compare.select_step_detail": "Its properties appear next to the matching step of the other plan, with ≠ where they differ.",
|
|
244
|
+
"ui.plan_compare.show_identical": "Show {count} identical",
|
|
245
|
+
"ui.plan_compare.show_step": "Show the step",
|
|
246
|
+
"ui.plan_compare.side_meta": "{engine} · {kind, select, estimated {estimated} generic {generic} actual {actual} other {{kind}}}",
|
|
247
|
+
"ui.plan_compare.sync": "Sync",
|
|
248
|
+
"ui.plan_compare.sync_off": "Zoom and scroll each plan on its own",
|
|
249
|
+
"ui.plan_compare.sync_on": "Zoom and scroll move both plans together",
|
|
250
|
+
"ui.plan_compare.tab.changes": "What changed",
|
|
251
|
+
"ui.plan_compare.tab.props": "Properties",
|
|
252
|
+
"ui.plan_compare.tab.why": "Why",
|
|
253
|
+
"ui.plan_compare.tree": "Tree",
|
|
254
|
+
"ui.plan_compare.unavailable": "unavailable",
|
|
255
|
+
"ui.plan_compare.verdict.cheaper": "{ratio} cheaper",
|
|
256
|
+
"ui.plan_compare.verdict.costlier": "{ratio} costlier",
|
|
257
|
+
"ui.plan_compare.verdict.different_engines": "different engines",
|
|
258
|
+
"ui.plan_compare.verdict.faster": "{ratio} faster",
|
|
259
|
+
"ui.plan_compare.verdict.no_costs": "no costs to compare",
|
|
260
|
+
"ui.plan_compare.verdict.same": "about the same",
|
|
261
|
+
"ui.plan_compare.verdict.slower": "{ratio} slower",
|
|
262
|
+
"ui.plan_diagram.access_path_only": "{engine}'s plan has the access path only: no row or cost estimates to weigh its steps by.",
|
|
263
|
+
"ui.plan_diagram.actual_size": "Actual size",
|
|
264
|
+
"ui.plan_diagram.card_issues": "{count, plural, one {# issue} other {# issues}}",
|
|
265
|
+
"ui.plan_diagram.card_on": "{operator} on {table}",
|
|
266
|
+
"ui.plan_diagram.card_share": "{share} of the work",
|
|
267
|
+
"ui.plan_diagram.cheap_operators": "+{count, plural, one {# cheap operator} other {# cheap operators}}",
|
|
268
|
+
"ui.plan_diagram.cost_goes": "Where the cost goes",
|
|
269
|
+
"ui.plan_diagram.cost_goes_note": "Where the cost goes: {note}",
|
|
270
|
+
"ui.plan_diagram.edge_rows": "{n, plural, one {{rows} row} other {{rows} rows}}",
|
|
271
|
+
"ui.plan_diagram.estimated_rows": "{rows} est.",
|
|
272
|
+
"ui.plan_diagram.everything_else": "Everything else {share}",
|
|
273
|
+
"ui.plan_diagram.fit": "Fit the whole plan",
|
|
274
|
+
"ui.plan_diagram.fold_title": "Show the cheap operators under this node",
|
|
275
|
+
"ui.plan_diagram.lens.cost": "Cost",
|
|
276
|
+
"ui.plan_diagram.lens.label": "Color steps by",
|
|
277
|
+
"ui.plan_diagram.lens.reads": "Reads",
|
|
278
|
+
"ui.plan_diagram.lens.rows": "Rows",
|
|
279
|
+
"ui.plan_diagram.lens.time": "Time",
|
|
280
|
+
"ui.plan_diagram.mark_changed": "changed",
|
|
281
|
+
"ui.plan_diagram.mark_only_here": "only here",
|
|
282
|
+
"ui.plan_diagram.minimap_label": "Plan overview minimap",
|
|
283
|
+
"ui.plan_diagram.minimap_toggle": "Toggle minimap",
|
|
284
|
+
"ui.plan_diagram.pan_hint": "Drag to pan · Ctrl/Cmd + scroll to zoom",
|
|
285
|
+
"ui.plan_diagram.passing_rows": "passing rows between workers",
|
|
286
|
+
"ui.plan_diagram.plan_warnings": "{count, plural, one {# plan warning} other {# plan warnings}}",
|
|
287
|
+
"ui.plan_diagram.result": "result",
|
|
288
|
+
"ui.plan_diagram.search_clear": "Clear search",
|
|
289
|
+
"ui.plan_diagram.search_matches": "{current} / {total}",
|
|
290
|
+
"ui.plan_diagram.search_next": "Next match",
|
|
291
|
+
"ui.plan_diagram.search_none": "0 matches",
|
|
292
|
+
"ui.plan_diagram.search_placeholder": "Find step, table, column",
|
|
293
|
+
"ui.plan_diagram.search_prev": "Previous match",
|
|
294
|
+
"ui.plan_diagram.time_went": "Where the {time} went",
|
|
295
|
+
"ui.plan_diagram.via": "via {operators}",
|
|
296
|
+
"ui.plan_diagram.zoom_in": "Zoom in",
|
|
297
|
+
"ui.plan_diagram.zoom_out": "Zoom out",
|
|
298
|
+
"ui.plan_format.false": "no",
|
|
299
|
+
"ui.plan_format.missing_view": "Reopen this plan to compute its measurements and explanations with the current analyzer.",
|
|
300
|
+
"ui.plan_format.other_measurements": "This plan view was prepared for different statement or plan measurements. Reopen the selected plan to refresh its explanation.",
|
|
301
|
+
"ui.plan_format.true": "yes",
|
|
302
|
+
"ui.plan_insights.area.index": "Index",
|
|
303
|
+
"ui.plan_insights.area.memory": "Memory",
|
|
304
|
+
"ui.plan_insights.area.parallelism": "Parallelism",
|
|
305
|
+
"ui.plan_insights.area.query": "Query",
|
|
306
|
+
"ui.plan_insights.area.server": "Setting",
|
|
307
|
+
"ui.plan_insights.area.statistics": "Statistics",
|
|
308
|
+
"ui.plan_insights.assessment_notes": "Assessment notes",
|
|
309
|
+
"ui.plan_insights.copied_all": "{count, plural, one {Copied the insight} other {Copied # insights}}",
|
|
310
|
+
"ui.plan_insights.copied_one": "Copied the insight",
|
|
311
|
+
"ui.plan_insights.copy_all_title": "Copy every insight as Markdown, most important first, for a pull request or a coding agent",
|
|
312
|
+
"ui.plan_insights.copy_fix_title": "Copy the SQL; Culprit never runs it",
|
|
313
|
+
"ui.plan_insights.copy_one": "Copy insight",
|
|
314
|
+
"ui.plan_insights.copy_one_title": "Copy this insight as Markdown",
|
|
315
|
+
"ui.plan_insights.count.high": "{n, plural, one {{count} high} other {{count} high}}",
|
|
316
|
+
"ui.plan_insights.count.low": "{n, plural, one {{count} low} other {{count} low}}",
|
|
317
|
+
"ui.plan_insights.count.medium": "{n, plural, one {{count} medium} other {{count} medium}}",
|
|
318
|
+
"ui.plan_insights.fix": "Fix",
|
|
319
|
+
"ui.plan_insights.fix_copied": "Copied the fix",
|
|
320
|
+
"ui.plan_insights.label": "Plan insights",
|
|
321
|
+
"ui.plan_insights.list_label": "Insights, most important first",
|
|
322
|
+
"ui.plan_insights.md.fix": "**Fix:** {fix}",
|
|
323
|
+
"ui.plan_insights.md.heading": "**{severity} · {area}:** {title}",
|
|
324
|
+
"ui.plan_insights.md.heading_share": "**{severity} · {area}:** {title} ({share} of the plan's work)",
|
|
325
|
+
"ui.plan_insights.md.statement": "For this statement:",
|
|
326
|
+
"ui.plan_insights.md.title": "## Plan insights",
|
|
327
|
+
"ui.plan_insights.md.verify": "**Verify:** {verify}",
|
|
328
|
+
"ui.plan_insights.none": "No tuning change suggested by this plan",
|
|
329
|
+
"ui.plan_insights.severity.high": "High",
|
|
330
|
+
"ui.plan_insights.severity.low": "Low",
|
|
331
|
+
"ui.plan_insights.severity.medium": "Medium",
|
|
332
|
+
"ui.plan_insights.severity_title": "{severity, select, high {High severity} medium {Medium severity} other {Low severity}}",
|
|
333
|
+
"ui.plan_insights.share_title": "Share of this plan's work at the operators involved",
|
|
334
|
+
"ui.plan_insights.show_fewer": "Show fewer",
|
|
335
|
+
"ui.plan_insights.show_more": "Show {count} more",
|
|
336
|
+
"ui.plan_insights.show_operator": "Show the operator",
|
|
337
|
+
"ui.plan_insights.title": "Insights",
|
|
338
|
+
"ui.plan_insights.verify": "Verify",
|
|
339
|
+
"ui.plan_objects.access": "Access",
|
|
340
|
+
"ui.plan_objects.cache_hit": "Cache hit",
|
|
341
|
+
"ui.plan_objects.direct_table": "table scan",
|
|
342
|
+
"ui.plan_objects.indexes": "Indexes used",
|
|
343
|
+
"ui.plan_objects.issues": "Issues",
|
|
344
|
+
"ui.plan_objects.lookups_count": "{n, plural, one {{count} lookup} other {{count} lookups}}",
|
|
345
|
+
"ui.plan_objects.none": "No table or index accesses recorded in this plan.",
|
|
346
|
+
"ui.plan_objects.ops_count": "{n, plural, one {{count} step} other {{count} steps}}",
|
|
347
|
+
"ui.plan_objects.reads": "Reads",
|
|
348
|
+
"ui.plan_objects.rows_out": "Rows out",
|
|
349
|
+
"ui.plan_objects.scans_count": "{n, plural, one {{count} scan} other {{count} scans}}",
|
|
350
|
+
"ui.plan_objects.seeks_count": "{n, plural, one {{count} seek} other {{count} seeks}}",
|
|
351
|
+
"ui.plan_objects.share": "Share",
|
|
352
|
+
"ui.plan_objects.table": "Table",
|
|
353
|
+
"ui.plan_operations.column.act": "Actual rows",
|
|
354
|
+
"ui.plan_operations.column.act_title": "Rows that actually came out",
|
|
355
|
+
"ui.plan_operations.column.error": "Off by",
|
|
356
|
+
"ui.plan_operations.column.error_title": "How far the estimate was from the actual rows",
|
|
357
|
+
"ui.plan_operations.column.est": "Est. rows",
|
|
358
|
+
"ui.plan_operations.column.est_read": "Est. read",
|
|
359
|
+
"ui.plan_operations.column.est_title": "Rows the optimizer expected, over all executions (the measured ones in an actual plan)",
|
|
360
|
+
"ui.plan_operations.column.issues": "Issues",
|
|
361
|
+
"ui.plan_operations.column.issues_title": "Insights and warnings about this operator",
|
|
362
|
+
"ui.plan_operations.column.read": "Read",
|
|
363
|
+
"ui.plan_operations.column.read_title": "Rows read, when the engine reports it",
|
|
364
|
+
"ui.plan_operations.column.runs_title": "How many times the operator ran",
|
|
365
|
+
"ui.plan_operations.column.self": "Self",
|
|
366
|
+
"ui.plan_operations.column.self_title": "Share of the plan's work done by this operator itself",
|
|
367
|
+
"ui.plan_operations.column.subtree": "With inputs",
|
|
368
|
+
"ui.plan_operations.column.subtree_title": "Share including everything below it",
|
|
369
|
+
"ui.plan_operations.column.time": "Time",
|
|
370
|
+
"ui.plan_operations.column.time_title": "Elapsed time, from actual plans",
|
|
371
|
+
"ui.plan_operations.fewer": "×{times} fewer",
|
|
372
|
+
"ui.plan_operations.filter": "Filter operators, tables, indexes",
|
|
373
|
+
"ui.plan_operations.issues_only": "With issues only",
|
|
374
|
+
"ui.plan_operations.more": "×{times} more",
|
|
375
|
+
"ui.plan_operations.none": "No operators match.",
|
|
376
|
+
"ui.plan_operations.operator": "Operator",
|
|
377
|
+
"ui.plan_operations.shown": "{shown} of {count, plural, one {# operator} other {# operators}}",
|
|
378
|
+
"ui.plan_raw.copied": "Copied raw plan",
|
|
379
|
+
"ui.plan_raw.copy": "Copy raw plan",
|
|
380
|
+
"ui.plan_raw.lines": "{n, plural, one {{count} line} other {{count} lines}}",
|
|
381
|
+
"ui.plan_raw.unavailable": "Original native plan text was not retained for this plan.",
|
|
382
|
+
"ui.plan_surface.click_row": "click a row to see the operator",
|
|
383
|
+
"ui.plan_surface.diagram": "Diagram",
|
|
384
|
+
"ui.plan_surface.diagram_hint": "The plan as a flow of operators",
|
|
385
|
+
"ui.plan_surface.generic": "This plan was obtained without the application's parameter values.",
|
|
386
|
+
"ui.plan_surface.generic_history": "It does not identify the plan used by historical executions.",
|
|
387
|
+
"ui.plan_surface.generic_settings": "Connection settings and runtime partition pruning may differ from the application's run.",
|
|
388
|
+
"ui.plan_surface.generic_sqlite": "It uses Culprit's SQLite library, which may differ from the application's version and build.",
|
|
389
|
+
"ui.plan_surface.label": "Plan view",
|
|
390
|
+
"ui.plan_surface.objects": "Tables",
|
|
391
|
+
"ui.plan_surface.objects_hint": "Time, rows, and reads rolled up per table and index",
|
|
392
|
+
"ui.plan_surface.operations": "Operations",
|
|
393
|
+
"ui.plan_surface.operations_hint": "Every operator in a sortable table",
|
|
394
|
+
"ui.plan_surface.raw": "Raw",
|
|
395
|
+
"ui.plan_surface.raw_hint": "Original native plan output",
|
|
396
|
+
"ui.plan_surface.redacted": "This retained plan redacts its original constants. It describes an estimated plan kept by the database, with no measured operator counters; hidden values cannot establish filter selectivity.",
|
|
397
|
+
"ui.plan_surface.tree": "Tree",
|
|
398
|
+
"ui.plan_surface.tree_hint": "Operators as an indented tree",
|
|
399
|
+
"ui.plan_type_schema.collation": "Collation",
|
|
400
|
+
"ui.plan_type_schema.column": "Column",
|
|
401
|
+
"ui.plan_type_schema.columns": "Columns",
|
|
402
|
+
"ui.plan_type_schema.data_type": "Data type",
|
|
403
|
+
"ui.plan_type_schema.descending": "Descending",
|
|
404
|
+
"ui.plan_type_schema.included": "Included",
|
|
405
|
+
"ui.plan_type_schema.index": "Index",
|
|
406
|
+
"ui.plan_type_schema.indexes": "Indexes",
|
|
407
|
+
"ui.plan_type_schema.key_ordinal": "Key ordinal",
|
|
408
|
+
"ui.plan_type_schema.length_bytes": "Length (bytes)",
|
|
409
|
+
"ui.plan_type_schema.limited": "Further metadata is omitted from this view.",
|
|
410
|
+
"ui.plan_type_schema.memory_optimized": "Memory optimized",
|
|
411
|
+
"ui.plan_type_schema.module": "Module",
|
|
412
|
+
"ui.plan_type_schema.native_kind": "Native index type",
|
|
413
|
+
"ui.plan_type_schema.nullable": "Nullable",
|
|
414
|
+
"ui.plan_type_schema.parameter": "Parameter",
|
|
415
|
+
"ui.plan_type_schema.parameters": "Parameters and table types",
|
|
416
|
+
"ui.plan_type_schema.precision": "Precision",
|
|
417
|
+
"ui.plan_type_schema.scale": "Scale",
|
|
418
|
+
"ui.plan_type_schema.table_type": "Table type",
|
|
419
|
+
"ui.plan_type_schema.unique": "Unique",
|
|
420
|
+
"ui.plan_view.est_rows": "Est. rows",
|
|
421
|
+
"ui.plan_view.operator": "Operator",
|
|
422
|
+
"ui.plan_view.over": "×{times} over",
|
|
423
|
+
"ui.plan_view.own_time": "Own time",
|
|
424
|
+
"ui.plan_view.rows_est_actual": "Rows est → actual",
|
|
425
|
+
"ui.plan_view.self_cost": "Self cost",
|
|
426
|
+
"ui.plan_view.under": "×{times} under",
|
|
427
|
+
"ui.plan_view.warning.implicit_conversion": "Type conversion",
|
|
428
|
+
"ui.plan_view.warning.memory_grant": "Memory grant",
|
|
429
|
+
"ui.plan_view.warning.misestimate": "Estimate off",
|
|
430
|
+
"ui.plan_view.warning.missing_statistics": "No statistics",
|
|
431
|
+
"ui.plan_view.warning.no_join_predicate": "No join predicate",
|
|
432
|
+
"ui.plan_view.warning.residual_predicate": "Filters after reading",
|
|
433
|
+
"ui.plan_view.warning.spill": "Spills to disk",
|
|
434
|
+
"view.plan_page_server_io.title": "Page-server reads",
|
|
435
|
+
"view.plan_page_server_io.unknown": "Unknown"
|
|
436
|
+
};
|
|
437
|
+
export const CARDINAL_LANGUAGES = { "af": 0, "ak": 1, "am": 2, "an": 0, "ar": 3, "ars": 3, "as": 2, "asa": 0, "ast": 4, "az": 0, "bal": 0, "be": 5, "bem": 0, "bez": 0, "bg": 0, "bho": 1, "blo": 6, "bm": 7, "bn": 2, "bo": 7, "br": 8, "brx": 0, "bs": 9, "ca": 10, "ce": 0, "ceb": 11, "cgg": 0, "chr": 0, "ckb": 0, "cs": 12, "csw": 1, "cv": 6, "cy": 13, "da": 14, "de": 4, "doi": 2, "dsb": 15, "dv": 0, "dz": 7, "ee": 0, "el": 0, "en": 4, "eo": 0, "es": 16, "et": 4, "eu": 0, "fa": 2, "ff": 17, "fi": 4, "fil": 11, "fo": 0, "fr": 18, "fur": 0, "fy": 4, "ga": 19, "gd": 20, "gl": 10, "gsw": 0, "gu": 2, "guw": 1, "gv": 21, "ha": 0, "haw": 0, "he": 22, "hi": 2, "hnj": 7, "hr": 9, "hsb": 15, "hu": 0, "hy": 17, "ia": 4, "id": 7, "ie": 4, "ig": 7, "ii": 7, "io": 4, "is": 23, "it": 10, "iu": 24, "ja": 7, "jbo": 7, "jgo": 0, "jmc": 0, "jv": 7, "jw": 7, "ka": 0, "kab": 17, "kaj": 0, "kcg": 0, "kde": 7, "kea": 7, "kk": 0, "kkj": 0, "kl": 0, "km": 7, "kn": 2, "ko": 7, "kok": 2, "kok-Latn": 2, "ks": 0, "ksb": 0, "ksh": 6, "ku": 0, "kw": 25, "ky": 0, "lag": 26, "lb": 0, "lg": 0, "lij": 4, "lkt": 7, "lld": 10, "ln": 1, "lo": 7, "lt": 27, "lv": 28, "mas": 0, "mg": 1, "mgo": 0, "mk": 29, "ml": 0, "mn": 0, "mo": 30, "mr": 0, "ms": 7, "mt": 31, "my": 7, "nah": 0, "naq": 24, "nb": 0, "nd": 0, "ne": 0, "nl": 4, "nn": 0, "nnh": 0, "no": 0, "nqo": 7, "nr": 0, "nso": 1, "ny": 0, "nyn": 0, "om": 0, "or": 0, "os": 0, "osa": 7, "pa": 1, "pap": 0, "pcm": 2, "pl": 32, "prg": 28, "ps": 0, "pt": 18, "pt-PT": 10, "rm": 0, "ro": 30, "rof": 0, "ru": 33, "rwk": 0, "sah": 7, "saq": 0, "sat": 24, "sc": 4, "scn": 10, "sd": 0, "sdh": 0, "se": 24, "seh": 0, "ses": 7, "sg": 7, "sgs": 34, "sh": 9, "shi": 35, "si": 36, "sk": 12, "sl": 37, "sma": 24, "smi": 24, "smj": 24, "smn": 24, "sms": 24, "sn": 0, "so": 0, "sq": 0, "sr": 9, "ss": 0, "ssy": 0, "st": 0, "su": 7, "sv": 4, "sw": 4, "syr": 0, "ta": 0, "te": 0, "teo": 0, "tg": 2, "th": 7, "ti": 1, "tig": 0, "tk": 0, "tl": 11, "tn": 0, "to": 7, "tpi": 7, "tr": 0, "ts": 0, "tzm": 38, "ug": 0, "uk": 33, "und": 7, "ur": 4, "uz": 0, "ve": 0, "vec": 10, "vi": 2, "vo": 0, "vun": 0, "wa": 1, "wae": 0, "wo": 7, "xh": 0, "xog": 0, "yi": 4, "yo": 7, "yue": 7, "zh": 7, "zu": 2 };
|
|
438
|
+
export const CARDINAL_RULES = [[["one", [[["n", 0, false, [[1, 1]]]]]]], [["one", [[["n", 0, false, [[0, 1]]]]]]], [["one", [[["i", 0, false, [[0, 0]]]], [["n", 0, false, [[1, 1]]]]]]], [["zero", [[["n", 0, false, [[0, 0]]]]]], ["one", [[["n", 0, false, [[1, 1]]]]]], ["two", [[["n", 0, false, [[2, 2]]]]]], ["few", [[["n", 100, false, [[3, 10]]]]]], ["many", [[["n", 100, false, [[11, 99]]]]]]], [["one", [[["i", 0, false, [[1, 1]]], ["v", 0, false, [[0, 0]]]]]]], [["one", [[["n", 10, false, [[1, 1]]], ["n", 100, true, [[11, 11]]]]]], ["few", [[["n", 10, false, [[2, 4]]], ["n", 100, true, [[12, 14]]]]]], ["many", [[["n", 10, false, [[0, 0]]]], [["n", 10, false, [[5, 9]]]], [["n", 100, false, [[11, 14]]]]]]], [["zero", [[["n", 0, false, [[0, 0]]]]]], ["one", [[["n", 0, false, [[1, 1]]]]]]], [], [["one", [[["n", 10, false, [[1, 1]]], ["n", 100, true, [[11, 11], [71, 71], [91, 91]]]]]], ["two", [[["n", 10, false, [[2, 2]]], ["n", 100, true, [[12, 12], [72, 72], [92, 92]]]]]], ["few", [[["n", 10, false, [[3, 4], [9, 9]]], ["n", 100, true, [[10, 19], [70, 79], [90, 99]]]]]], ["many", [[["n", 0, true, [[0, 0]]], ["n", 1000000, false, [[0, 0]]]]]]], [["one", [[["v", 0, false, [[0, 0]]], ["i", 10, false, [[1, 1]]], ["i", 100, true, [[11, 11]]]], [["f", 10, false, [[1, 1]]], ["f", 100, true, [[11, 11]]]]]], ["few", [[["v", 0, false, [[0, 0]]], ["i", 10, false, [[2, 4]]], ["i", 100, true, [[12, 14]]]], [["f", 10, false, [[2, 4]]], ["f", 100, true, [[12, 14]]]]]]], [["one", [[["i", 0, false, [[1, 1]]], ["v", 0, false, [[0, 0]]]]]], ["many", [[["e", 0, false, [[0, 0]]], ["i", 0, true, [[0, 0]]], ["i", 1000000, false, [[0, 0]]], ["v", 0, false, [[0, 0]]]], [["e", 0, true, [[0, 5]]]]]]], [["one", [[["v", 0, false, [[0, 0]]], ["i", 0, false, [[1, 1], [2, 2], [3, 3]]]], [["v", 0, false, [[0, 0]]], ["i", 10, true, [[4, 4], [6, 6], [9, 9]]]], [["v", 0, true, [[0, 0]]], ["f", 10, true, [[4, 4], [6, 6], [9, 9]]]]]]], [["one", [[["i", 0, false, [[1, 1]]], ["v", 0, false, [[0, 0]]]]]], ["few", [[["i", 0, false, [[2, 4]]], ["v", 0, false, [[0, 0]]]]]], ["many", [[["v", 0, true, [[0, 0]]]]]]], [["zero", [[["n", 0, false, [[0, 0]]]]]], ["one", [[["n", 0, false, [[1, 1]]]]]], ["two", [[["n", 0, false, [[2, 2]]]]]], ["few", [[["n", 0, false, [[3, 3]]]]]], ["many", [[["n", 0, false, [[6, 6]]]]]]], [["one", [[["n", 0, false, [[1, 1]]]], [["t", 0, true, [[0, 0]]], ["i", 0, false, [[0, 0], [1, 1]]]]]]], [["one", [[["v", 0, false, [[0, 0]]], ["i", 100, false, [[1, 1]]]], [["f", 100, false, [[1, 1]]]]]], ["two", [[["v", 0, false, [[0, 0]]], ["i", 100, false, [[2, 2]]]], [["f", 100, false, [[2, 2]]]]]], ["few", [[["v", 0, false, [[0, 0]]], ["i", 100, false, [[3, 4]]]], [["f", 100, false, [[3, 4]]]]]]], [["one", [[["n", 0, false, [[1, 1]]]]]], ["many", [[["e", 0, false, [[0, 0]]], ["i", 0, true, [[0, 0]]], ["i", 1000000, false, [[0, 0]]], ["v", 0, false, [[0, 0]]]], [["e", 0, true, [[0, 5]]]]]]], [["one", [[["i", 0, false, [[0, 0], [1, 1]]]]]]], [["one", [[["i", 0, false, [[0, 1]]]]]], ["many", [[["e", 0, false, [[0, 0]]], ["i", 0, true, [[0, 0]]], ["i", 1000000, false, [[0, 0]]], ["v", 0, false, [[0, 0]]]], [["e", 0, true, [[0, 5]]]]]]], [["one", [[["n", 0, false, [[1, 1]]]]]], ["two", [[["n", 0, false, [[2, 2]]]]]], ["few", [[["n", 0, false, [[3, 6]]]]]], ["many", [[["n", 0, false, [[7, 10]]]]]]], [["one", [[["n", 0, false, [[1, 1], [11, 11]]]]]], ["two", [[["n", 0, false, [[2, 2], [12, 12]]]]]], ["few", [[["n", 0, false, [[3, 10], [13, 19]]]]]]], [["one", [[["v", 0, false, [[0, 0]]], ["i", 10, false, [[1, 1]]]]]], ["two", [[["v", 0, false, [[0, 0]]], ["i", 10, false, [[2, 2]]]]]], ["few", [[["v", 0, false, [[0, 0]]], ["i", 100, false, [[0, 0], [20, 20], [40, 40], [60, 60], [80, 80]]]]]], ["many", [[["v", 0, true, [[0, 0]]]]]]], [["one", [[["i", 0, false, [[1, 1]]], ["v", 0, false, [[0, 0]]]], [["i", 0, false, [[0, 0]]], ["v", 0, true, [[0, 0]]]]]], ["two", [[["i", 0, false, [[2, 2]]], ["v", 0, false, [[0, 0]]]]]]], [["one", [[["t", 0, false, [[0, 0]]], ["i", 10, false, [[1, 1]]], ["i", 100, true, [[11, 11]]]], [["t", 10, false, [[1, 1]]], ["t", 100, true, [[11, 11]]]]]]], [["one", [[["n", 0, false, [[1, 1]]]]]], ["two", [[["n", 0, false, [[2, 2]]]]]]], [["zero", [[["n", 0, false, [[0, 0]]]]]], ["one", [[["n", 0, false, [[1, 1]]]]]], ["two", [[["n", 100, false, [[2, 2], [22, 22], [42, 42], [62, 62], [82, 82]]]], [["n", 1000, false, [[0, 0]]], ["n", 100000, false, [[1000, 20000], [40000, 40000], [60000, 60000], [80000, 80000]]]], [["n", 0, true, [[0, 0]]], ["n", 1000000, false, [[100000, 100000]]]]]], ["few", [[["n", 100, false, [[3, 3], [23, 23], [43, 43], [63, 63], [83, 83]]]]]], ["many", [[["n", 0, true, [[1, 1]]], ["n", 100, false, [[1, 1], [21, 21], [41, 41], [61, 61], [81, 81]]]]]]], [["zero", [[["n", 0, false, [[0, 0]]]]]], ["one", [[["i", 0, false, [[0, 0], [1, 1]]], ["n", 0, true, [[0, 0]]]]]]], [["one", [[["n", 10, false, [[1, 1]]], ["n", 100, true, [[11, 19]]]]]], ["few", [[["n", 10, false, [[2, 9]]], ["n", 100, true, [[11, 19]]]]]], ["many", [[["f", 0, true, [[0, 0]]]]]]], [["zero", [[["n", 10, false, [[0, 0]]]], [["n", 100, false, [[11, 19]]]], [["v", 0, false, [[2, 2]]], ["f", 100, false, [[11, 19]]]]]], ["one", [[["n", 10, false, [[1, 1]]], ["n", 100, true, [[11, 11]]]], [["v", 0, false, [[2, 2]]], ["f", 10, false, [[1, 1]]], ["f", 100, true, [[11, 11]]]], [["v", 0, true, [[2, 2]]], ["f", 10, false, [[1, 1]]]]]]], [["one", [[["v", 0, false, [[0, 0]]], ["i", 10, false, [[1, 1]]], ["i", 100, true, [[11, 11]]]], [["f", 10, false, [[1, 1]]], ["f", 100, true, [[11, 11]]]]]]], [["one", [[["i", 0, false, [[1, 1]]], ["v", 0, false, [[0, 0]]]]]], ["few", [[["v", 0, true, [[0, 0]]]], [["n", 0, false, [[0, 0]]]], [["n", 0, true, [[1, 1]]], ["n", 100, false, [[1, 19]]]]]]], [["one", [[["n", 0, false, [[1, 1]]]]]], ["two", [[["n", 0, false, [[2, 2]]]]]], ["few", [[["n", 0, false, [[0, 0]]]], [["n", 100, false, [[3, 10]]]]]], ["many", [[["n", 100, false, [[11, 19]]]]]]], [["one", [[["i", 0, false, [[1, 1]]], ["v", 0, false, [[0, 0]]]]]], ["few", [[["v", 0, false, [[0, 0]]], ["i", 10, false, [[2, 4]]], ["i", 100, true, [[12, 14]]]]]], ["many", [[["v", 0, false, [[0, 0]]], ["i", 0, true, [[1, 1]]], ["i", 10, false, [[0, 1]]]], [["v", 0, false, [[0, 0]]], ["i", 10, false, [[5, 9]]]], [["v", 0, false, [[0, 0]]], ["i", 100, false, [[12, 14]]]]]]], [["one", [[["v", 0, false, [[0, 0]]], ["i", 10, false, [[1, 1]]], ["i", 100, true, [[11, 11]]]]]], ["few", [[["v", 0, false, [[0, 0]]], ["i", 10, false, [[2, 4]]], ["i", 100, true, [[12, 14]]]]]], ["many", [[["v", 0, false, [[0, 0]]], ["i", 10, false, [[0, 0]]]], [["v", 0, false, [[0, 0]]], ["i", 10, false, [[5, 9]]]], [["v", 0, false, [[0, 0]]], ["i", 100, false, [[11, 14]]]]]]], [["one", [[["n", 10, false, [[1, 1]]], ["n", 100, true, [[11, 11]]]]]], ["two", [[["n", 0, false, [[2, 2]]]]]], ["few", [[["n", 0, true, [[2, 2]]], ["n", 10, false, [[2, 9]]], ["n", 100, true, [[11, 19]]]]]], ["many", [[["f", 0, true, [[0, 0]]]]]]], [["one", [[["i", 0, false, [[0, 0]]]], [["n", 0, false, [[1, 1]]]]]], ["few", [[["n", 0, false, [[2, 10]]]]]]], [["one", [[["n", 0, false, [[0, 0], [1, 1]]]], [["i", 0, false, [[0, 0]]], ["f", 0, false, [[1, 1]]]]]]], [["one", [[["v", 0, false, [[0, 0]]], ["i", 100, false, [[1, 1]]]]]], ["two", [[["v", 0, false, [[0, 0]]], ["i", 100, false, [[2, 2]]]]]], ["few", [[["v", 0, false, [[0, 0]]], ["i", 100, false, [[3, 4]]]], [["v", 0, true, [[0, 0]]]]]]], [["one", [[["n", 0, false, [[0, 1]]]], [["n", 0, false, [[11, 99]]]]]]]];
|
package/pkg/host.d.ts
ADDED
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { type KeyboardEvent, type ReactNode } from "react";
|
|
2
|
+
import { type ViewerLocaleMeta } from "./defaults.js";
|
|
3
|
+
import type { Engine, Guess, Plan, PlanInsight, PlanNode, PlanOperatorView, QueryStat } from "./types.js";
|
|
4
|
+
export type MessageArgs = Record<string, string | number>;
|
|
5
|
+
export type PlanViewerI18nAdapter = {
|
|
6
|
+
t: (key: string, args?: MessageArgs) => string;
|
|
7
|
+
locale: () => ViewerLocaleMeta;
|
|
8
|
+
language: () => string;
|
|
9
|
+
subscribe: (listener: () => void) => () => void;
|
|
10
|
+
};
|
|
11
|
+
export type PlanViewerClipboardHandler = (text: string, message?: string) => Promise<boolean> | boolean | void;
|
|
12
|
+
/** Plug in the host application's live localization store (used by Culprit's desktop UI). */
|
|
13
|
+
export declare function bindPlanViewerI18n(adapter: PlanViewerI18nAdapter | null): void;
|
|
14
|
+
/** Plug in the host application's clipboard and toast notification handler. */
|
|
15
|
+
export declare function bindPlanViewerClipboard(handler: PlanViewerClipboardHandler | null): void;
|
|
16
|
+
export declare function locale(): ViewerLocaleMeta;
|
|
17
|
+
export declare function language(): string;
|
|
18
|
+
export declare function useLanguage(): string;
|
|
19
|
+
export declare function t(key: string, args?: MessageArgs): string;
|
|
20
|
+
export declare function copyAndTell(text: string, message?: string): Promise<boolean>;
|
|
21
|
+
export declare function slot(i: number): string;
|
|
22
|
+
export declare function withElements(message: string, elements: ReactNode[]): ReactNode;
|
|
23
|
+
export declare function tx(key: string, args: MessageArgs, elements: Record<string, ReactNode>): ReactNode;
|
|
24
|
+
export declare function canPlanEstimates(engine: Engine): boolean;
|
|
25
|
+
export declare function genericPlanContextKey(engine: Engine): string;
|
|
26
|
+
export declare function serverName(engine: Engine, product?: string | null): string;
|
|
27
|
+
export declare function planEngineName(plan: Pick<Plan, "engine" | "props">): string;
|
|
28
|
+
export declare function digits(text: string): string;
|
|
29
|
+
export declare function dateLocale(): string;
|
|
30
|
+
export declare function duration(ms: number | null | undefined): string;
|
|
31
|
+
export declare function count(value: number | null | undefined): string;
|
|
32
|
+
export declare function rowCount(value: number | null | undefined): string;
|
|
33
|
+
export declare function percent(ratio: number | null | undefined): string;
|
|
34
|
+
export declare function when(iso: string | null | undefined, now?: Date): {
|
|
35
|
+
short: string;
|
|
36
|
+
full: string;
|
|
37
|
+
};
|
|
38
|
+
export type SqlToken = {
|
|
39
|
+
kind: "k" | "s" | "n" | "c" | "p" | "t";
|
|
40
|
+
text: string;
|
|
41
|
+
};
|
|
42
|
+
export declare function tokenizeSql(sql: string): SqlToken[];
|
|
43
|
+
export declare function prettySql(sql: string): string;
|
|
44
|
+
export declare function tabListKeys(e: KeyboardEvent<HTMLElement>): void;
|
|
45
|
+
export declare function rememberedChoice<T extends string>(key: string, fallback: T, allowed: readonly T[]): T;
|
|
46
|
+
export declare function remember(key: string, value: string | null): void;
|
|
47
|
+
export declare function allNodes(n: PlanNode, out?: PlanNode[]): PlanNode[];
|
|
48
|
+
export declare function operatorView(plan: Plan | null | undefined, node: PlanNode): PlanOperatorView | null;
|
|
49
|
+
export declare const costBasis: (plan: Plan) => number;
|
|
50
|
+
export declare const uncostedSteps: (plan: Plan) => PlanNode[];
|
|
51
|
+
export declare const stepShare: (plan: Plan, node: PlanNode) => number | null;
|
|
52
|
+
export declare const guesses: (plan: Plan) => Map<number, Guess>;
|
|
53
|
+
export declare function statedInsightShare(plan: Plan, insight: PlanInsight): number | null;
|
|
54
|
+
export declare function noShareReason(plan: Plan, node: PlanNode, query?: QueryStat | null): string | null;
|
|
55
|
+
export declare function findingNoShareReason(plan: Plan, node: PlanNode, query?: QueryStat | null): string | null;
|
|
56
|
+
export declare function sharesNote(plan: Plan, query?: QueryStat | null): string | null;
|
|
57
|
+
export declare const estRows: (plan: Plan | null | undefined, node: PlanNode) => number | null;
|
|
58
|
+
export declare const rowsOut: (plan: Plan | null | undefined, node: PlanNode) => number | null;
|
|
59
|
+
export declare const estRowsForRuns: (plan: Plan | null | undefined, node: PlanNode) => number | null;
|
|
60
|
+
export declare const operatorRuns: (plan: Plan | null | undefined, node: PlanNode) => number | null;
|
|
61
|
+
export declare const misestimate: (plan: Plan | null | undefined, node: PlanNode) => number | null;
|
|
62
|
+
export declare function exact(value: number | null): string;
|
|
63
|
+
export declare function cost(value: number): string;
|
|
64
|
+
export declare function rows(value: number | null): string;
|
|
65
|
+
export declare function propValue(value: string): string;
|
|
66
|
+
export declare function bySeverity(a: PlanInsight, b: PlanInsight): number;
|
|
67
|
+
export declare function insightsByNode(plan: Plan): Map<number, PlanInsight[]>;
|
|
68
|
+
export declare function isWrapper(n: PlanNode, total: number): boolean;
|
|
69
|
+
export declare function planKindLabel(plan: Pick<Plan, "kind">): string;
|
|
70
|
+
export declare function shortPredicate(text: string): string;
|
|
71
|
+
export declare function predicateLabel(kind: "filter" | "seek", predicate: string): string;
|
|
72
|
+
export type Shares = {
|
|
73
|
+
basis: "time" | "cost";
|
|
74
|
+
own: Map<number, number>;
|
|
75
|
+
subtree: Map<number, number>;
|
|
76
|
+
stated: Map<number, number | null>;
|
|
77
|
+
statedSubtree: Map<number, number | null>;
|
|
78
|
+
note: string | null;
|
|
79
|
+
hottest: PlanNode | null;
|
|
80
|
+
ms: Map<number, number>;
|
|
81
|
+
total: number;
|
|
82
|
+
};
|
|
83
|
+
export declare function planShares(plan: Plan, query?: QueryStat | null): Shares;
|
|
84
|
+
export type ActualFacts = {
|
|
85
|
+
triggers: {
|
|
86
|
+
name: string;
|
|
87
|
+
relation: string | null;
|
|
88
|
+
ms: number;
|
|
89
|
+
calls: number | null;
|
|
90
|
+
}[];
|
|
91
|
+
elapsedMs: number | null;
|
|
92
|
+
cpuMs: number | null;
|
|
93
|
+
logicalReads: number | null;
|
|
94
|
+
physicalReads: number | null;
|
|
95
|
+
rows: number | null;
|
|
96
|
+
grantedKb: number | null;
|
|
97
|
+
usedKb: number | null;
|
|
98
|
+
spilled: boolean;
|
|
99
|
+
spillPages: number;
|
|
100
|
+
timed: boolean;
|
|
101
|
+
slowest: {
|
|
102
|
+
node: PlanNode;
|
|
103
|
+
ms: number;
|
|
104
|
+
share: number;
|
|
105
|
+
} | null;
|
|
106
|
+
worstEstimate: {
|
|
107
|
+
node: PlanNode;
|
|
108
|
+
factor: number;
|
|
109
|
+
} | null;
|
|
110
|
+
skew: {
|
|
111
|
+
node: PlanNode;
|
|
112
|
+
busiest: number;
|
|
113
|
+
threads: number;
|
|
114
|
+
} | null;
|
|
115
|
+
lastRunAt: string | null;
|
|
116
|
+
workers: number | null;
|
|
117
|
+
};
|
|
118
|
+
export declare function actualFacts(plan: Plan): ActualFacts | null;
|