$compile(scope.getTemplate("SOME HTML"))(scope);
$('#templateParent').append(scope.template);
In Angular (2+), you cannot directly compile HTML strings like $compile in AngularJS. Instead, Angular encourages a component-based approach for rendering dynamic content. Here's how you can achieve a similar functionality:
Angular Conversion
AngularJS Code:
$compile(scope.getTemplate("SOME HTML"))(scope);
$('#templateParent').append(scope.template);
Angular (2+) Equivalent:
To dynamically add HTML content, follow these steps:
---
Step 1: Component-Based Approach
Create a Reusable Dynamic Component:
import { Component, Input } from '@angular/core';
@Component({
selector: 'app-dynamic-template',
template: `<div [innerHTML]="template"></div>`,
})
export class DynamicTemplateComponent {
@Input() template: string = '';
}
This component will render dynamic HTML passed as an input.
---
Step 2: Insert the Dynamic Component
Use ViewContainerRef to Add the Component Dynamically:
import {
Component,
ViewChild,
ViewContainerRef,
ComponentFactoryResolver,
AfterViewInit,
} from '@angular/core';
@Component({
selector: 'app-root',
template: `<div id="templateParent" #templateParent></div>`,
})
export class AppComponent {
@ViewChild('templateParent', { read: ViewContainerRef }) container!: ViewContainerRef;
constructor(private resolver: ComponentFactoryResolver) {}
addDynamicTemplate(html: string) {
// Resolve the dynamic component
const factory = this.resolver.resolveComponentFactory(DynamicTemplateComponent);
// Create the component in the container
const componentRef = this.container.createComponent(factory);
// Pass the dynamic HTML to the component
componentRef.instance.template = html;
}
// Example usage
ngOnInit() {
const dynamicHtml = `<p>This is dynamically inserted HTML!</p>`;
this.addDynamicTemplate(dynamicHtml);
}
}
---
Explanation:
1. DynamicTemplateComponent:
Handles rendering of the dynamic HTML using Angular's [innerHTML] binding
$filter('filter')(this.claimAmendList, { reqNo: this.claimAmendList[i].reqNo }, true)[0];
In Angular (2+), you don't have a built-in $filter service as in AngularJS. Instead, you can achieve the same functionality using JavaScript's array methods like filter. Here's the equivalent conversion of the given AngularJS code:
AngularJS Code:
$filter('filter')(this.claimAmendList, { reqNo: this.claimAmendList[i].reqNo }, true)[0];
Converted Angular Code:
this.claimAmendList.filter(item => item.reqNo === this.claimAmendList[i].reqNo)[0];
Explanation:
$filter('filter') in AngularJS is replaced with JavaScript's native Array.prototype.filter method in Angular.
The third argument (true) in AngularJS $filter('filter') ensures strict equality, which is the default behavior of === in JavaScript.
This direct conversion avoids creating custom pipes or components and uses standard TypeScript/JavaScript syntax.
<?php
function containsSpecialCharacters($text) {
// Define a regex pattern for special characters
$pattern = '/[^a-zA-Z0-9\s]/';
// Check if the text contains any special characters
if (preg_match($pattern, $text)) {
return false;
}
return true;
}
// Example usage
$text = "HelloWorld123"; // This will return true
var_dump(containsSpecialCharacters($text));
$textWithSpecialChars = "Hello@World!"; // This will return false
var_dump(containsSpecialCharacters($textWithSpecialChars));
?>
removeDuplicatesFromOptions(are: any[]): any[] {
return are.map(item => {
if (item.Options && Array.isArray(item.Options)) {
item.Options = item.Options.filter((option, index, self) =>
index === self.findIndex(o => o.Id === option.Id && o.name === option.name)
);
}
return item;
});
}
If you don't want to use a function and instead directly implement the logic, you can write the code inline as follows:
Inline Code:
const Are = [
{
Item1: 'aaa',
Item2: 'bbb',
Options: [
{ Id: 1, name: 'name 1' },
{ Id: 1, name: 'name 1' },
{ Id: 2, name: 'name 2' },
]
},
{
Item1: 'ccc',
Item2: 'ddd',
Options: [
{ Id: 1, name: 'name 1' },
{ Id: 3, name: 'name 3' },
{ Id: 3, name: 'name 3' },
]
}
];
// Inline logic to remove duplicates from Options
const updatedAre = Are.map(item => {
if (item.Options && Array.isArray(item.Options)) {
item.Options = item.Options.filter((option, index, self) =>
index === self.findIndex(o => o.Id === option.Id && o.name === option.name)
);
}
return item;
});
console.log(updatedAre);
// Output:
// [
// {
// Item1: 'aaa',
// Item2: 'bbb',
// Options: [
// { Id: 1, name: 'name 1' },
// { Id: 2, name: 'name 2' },
// ]
// },
// {
// Item1: 'ccc',
// Item2: 'ddd',
// Options: [
// { Id: 1, name: 'name 1' },
// { Id: 3, name: 'name 3' },
// ]
// }
// ]
Explanation:
1. Are.map(): Iterates through each object in the Are array.
2. Check for Options: Ensures Options exists and is an array.
3. Deduplication Logic:
Use filter to retain only unique objects.
Compare the current object with others using findIndex to ensure only the
import { Injectable } from '@angular/core';
@Injectable({
providedIn: 'root',
})
export class DateService {
/**
* Calculates the number of months between the current date and the provided date.
* @param inputDate A string or Date object representing the date to compare.
* @returns Number of months between the current date and the provided date.
*/
calculateMonths(inputDate: Date | string): number {
const currentDate = new Date();
const targetDate = new Date(inputDate);
if (isNaN(targetDate.getTime())) {
throw new Error('Invalid date format');
}
const yearsDifference = currentDate.getFullYear() - targetDate.getFullYear();
const monthsDifference = currentDate.getMonth() - targetDate.getMonth();
return yearsDifference * 12 + monthsDifference;
}
}
Using CSP nonces in MediaWiki is a good way to secure scripts and styles without completely blocking inline code. Here’s a detailed guide on how to implement and manage CSP nonces in MediaWiki.
1. What is a CSP Nonce?
A nonce ("number used once") is a randomly generated token that is added to each script or style tag. The server generates a unique nonce for each page load and includes it in the CSP header. Browsers will only allow inline scripts/styles if they have a matching nonce.
Example of a Nonce in a CSP Header
Content-Security-Policy: script-src 'self' 'nonce-ABC123';
Example of an Inline Script with a Nonce
<script nonce="ABC123">
console.log('This script is allowed!');
</script>
2. Implementing CSP Nonces in MediaWiki
Step 1: Generate a Nonce in LocalSettings.php
Modify LocalSettings.php to generate a random nonce for each request:
$wgHooks['BeforePageDisplay'][] = function ( &$out, &$skin ) {
$nonce = bin2hex(random_bytes(16)); // Generates a random 32-character nonce
$out->getRequest()->setHeader( 'X-CSP-Nonce', $nonce ); // Store in the response header
$GLOBALS['wgCSPNonce'] = $nonce; // Store globally for use in templates
};
$wgCSPHeader = [
'default-src' => [ "'self'" ],
'script-src' => [ "'self'", "'nonce-$wgCSPNonce'" ],
'style-src' => [ "'self'", "'nonce-$wgCSPNonce'" ],
];
This dynamically sets a new nonce for every page request.
Step 2: Use the Nonce in Templates and Extensions
Now, you need to apply the nonce to your inline scripts and styles.
A. Adding Nonce to Inline Scripts
Instead of writing:
<script>
alert('Inline script running!');
</script>
Use:
<script nonce="<?= $GLOBALS['wgCSPNonce']; ?>">
alert('Inline script running!');
</script>
B. Adding Nonce to Inline Styles
Instead of:
<style>
body { background: #f4f4f4; }
</style>
Use:
<style nonce="<?= $GLOBALS['wgCSPNonce']; ?>">
body { background: #f4f4f4; }
</style>
Step 3: Pass the Nonce to MediaWiki Hooks
If you're using MediaWiki hooks to inject scripts, you need to pass the nonce dynamically.
A. Adding a Nonce in a Skin or Extension
Modify your skin’s PHP file (e.g., skins/MySkin.php):
$wgHooks['OutputPageBeforeHTML'][] = function ( &$out, &$text ) {
$nonce = $GLOBALS['wgCSPNonce'];
$text .= '<script nonce="' . htmlspecialchars($nonce) . '">console.log("Nonce added");</script>';
};
B. Adding a Nonce in JavaScript Injected via Hooks
If an extension uses inline JavaScript, modify it like this:
$wgHooks['BeforePageDisplay'][] = function ( &$out, &$skin ) {
$nonce = $GLOBALS['wgCSPNonce'];
$out->addHeadItem( 'custom-script', '<script nonce="' . htmlspecialchars($nonce) . '">console.log("Safe script!");</script>' );
};
3. Testing & Debugging CSP Nonces
A. Check Nonce in Browser Developer Tools
Open your site in Chrome/Firefox.
Press F12 > Console.
Look for CSP errors (they will tell you if a script was blocked).
Check the Network tab > Click on the page request > Headers > Look for X-CSP-Nonce.
B. Use CSP Report-Only Mode for Testing
Before fully enforcing CSP, test it using Report-Only Mode:
$wgCSPHeaderReportOnly = [
'default-src' => [ "'self'" ],
'script-src' => [ "'self'", "'nonce-$wgCSPNonce'" ],
'style-src' => [ "'self'", "'nonce-$wgCSPNonce'" ],
];
This logs violations without blocking them.
C. Debug CSP Violations
You can set up a CSP violation reporting URL:
$wgCSPReportUri = 'https://yourdomain.com/csp-report.php';
Then, create csp-report.php to log violations:
<?php
$input = file_get_contents("php://input");
file_put_contents("csp-violations.log", $input . PHP_EOL, FILE_APPEND);
?>
Check csp-violations.log for blocked scripts and styles.
4. Alternative: Using mw.config to Store Nonce
Instead of PHP, you can set the nonce in JavaScript:
$wgHooks['MakeGlobalVariablesScript'][] = function ( &$vars, &$out ) {
$vars['cspNonce'] = $GLOBALS['wgCSPNonce'];
};
Then, use it in JavaScript:
const nonce = mw.config.get('cspNonce');
document.write(`<script nonce="${nonce}">console.log("Safe script!");</script>`);
Final Thoughts
Best Practice: Move as many scripts as possible to MediaWiki:Common.js or ResourceLoader modules.
Use Nonces: For any remaining inline scripts/styles, dynamically generate and attach a nonce.
Test with CSP Report-Only Mode before enforcing it site-wide.
Would you like help debugging your CSP setup, or do you have specific inline scripts causing issues?
$wgHooks['BeforePageDisplay'][] = function ( &$out, &$skin ) {
$nonce = bin2hex(random_bytes(16)); // Generates a random 32-character nonce
$GLOBALS['wgCSPNonce'] = $nonce; // Store nonce globally
// Set CSP header including the nonce
$out->addExtraHeader(
"Content-Security-Policy",
"default-src 'self'; script-src 'self' 'nonce-$nonce'; style-src 'self' 'nonce-$nonce';"
);
};
Short Longer Text Button Click Me Very Long Button Text Example Button
function isValid(str) {
return /^(?=.*[a-zA-Z])[a-zA-Z0-9\s\W_]+$/.test(str);
}
SELECT
tc.table_name,
kcu.column_name
FROM
information_schema.table_constraints AS tc
JOIN
information_schema.key_column_usage AS kcu
ON tc.constraint_name = kcu.constraint_name
AND tc.constraint_schema = kcu.constraint_schema
LEFT JOIN
pg_indexes AS idx
ON idx.schemaname = tc.constraint_schema
AND idx.tablename = tc.table_name
AND idx.indexdef ILIKE '%' || kcu.column_name || '%'
WHERE
tc.constraint_type = 'FOREIGN KEY'
AND tc.constraint_schema = 'css'
AND idx.indexname IS NULL;
SELECT
tc.table_name AS source_table,
kcu.column_name AS fk_column,
ccu.table_name AS referenced_table
FROM
information_schema.table_constraints AS tc
JOIN
information_schema.key_column_usage AS kcu
ON tc.constraint_name = kcu.constraint_name
AND tc.constraint_schema = kcu.constraint_schema
JOIN
information_schema.constraint_column_usage AS ccu
ON tc.constraint_name = ccu.constraint_name
AND tc.constraint_schema = ccu.constraint_schema
LEFT JOIN
pg_indexes AS idx
ON idx.schemaname = tc.constraint_schema
AND idx.tablename = tc.table_name
AND idx.indexdef ILIKE '%' || kcu.column_name || '%'
WHERE
tc.constraint_type = 'FOREIGN KEY'
AND tc.constraint_schema = 'css'
AND idx.indexname IS NULL;
removeOptionByName(parentArray: any[], targetName: string): void {
parentArray.forEach(parent => {
if (parent.options && Array.isArray(parent.options)) {
const index = parent.options.findIndex(option => option.name === targetName);
if (index !== -1) {
parent.options.splice(index, 1);
}
}
});
}
removeProjectById(arr: { projectid: number }[], idToRemove: number): { projectid: number }[] {
return arr.filter(project => project.projectid !== idToRemove);
}
let Arr = [{ projectid: 111 }, { projectid: 222 }, { projectid: 333 }];
Arr = this.removeProjectById(Arr, 222);
console.log(Arr); // Output: [ { projectid: 111 }, { projectid: 333 } ]
asdasd
asdasd
select
DISTINCT d.id_seq parentdeliveryunitid,
d.du_name::character varying parentdeliveryUnitName,
(select dl.du_name from css.deliveryunits dl where dl.id = proj.sub_du_id) as deliveryunitname,
(select gd.gdc_name from css.gdcmst gd where gd.gdc_code = proj.operational_dc) as gdc,
(select ip.parent_description from css.ip_master ip where ip.id = proj.ip_id ) as ou,
(SELECT name FROM css.clients where id = proj.client_id) accountname,
proj.client_id accountid,
proj.project_id projectid,
proj.project_name projectname,
proj.current_status projectstatus,
srv_css_hd.preferred_proj_name preferredprojectname,
srv_hd.survey_title cssName,
case when srv_css_hd.tcsindex is null then -1 else srv_css_hd.tcsindex end csipercentage,
srv_hd.id as surveyid,
srv_hd.survey_id as ccsid,
eng.at_projgrpid as engagementId,
eng.at_classification as engagementComplexity,
(select case when srv_css_hd.tcsindex is not null then
case when proj.current_status = 'Closed' then
case when rcs.status_id IS NULL THEN 'No'
ELSE
CASE WHEN rcs.status_id not in (4,5) then 'No' else 'Yes' end END
else
(SELECT case when SUM(sh_count)::integer = 0 then 'No' else 'Yes' end as mandatory_status FROM
(select count(tcs_satisfier_indicator) AS sh_count from css.survey_css_header where survey_id =srv_hd.survey_id and tcs_satisfier_indicator = 'Dissatisfier'
and srv_css_hd.tcsindex is not null
union
select count(tcs_satisfier_indicator) AS sh_count from css.survey_responses where survey_id = srv_hd.survey_id and tcs_satisfier_indicator = 'Dissatisfier'
UNION
select count(ofi_satisfier_indicator) AS sh_count from css.survey_css_header where survey_id =srv_hd.survey_id and ofi_satisfier_indicator = 'Dissatisfier'
and srv_css_hd.tcsindex is not null and srv_css_hd.tcsform = 'N'
)) end
else ' ' end ) as apricotMandatoryStatus ,
(srv_hd.financialyear_from || '-'|| (srv_hd.financialyear_from+1))::character varying financialyear,
srv_hd.half_year as halfyear,
(SELECT survey_type_name FROM css.survey_types_mst WHERE survey_type_id = srv_hd.survey_type_id) surveytype,
cast((coalesce(clmem.first_name, ' ') || coalesce(clmem.middle_name, ' ') || coalesce(clmem.last_name, ' ')) as varchar) customerrepresentative,
srv_css_hd.tcsform cssFormal,
cap.css_applicability_flag cssapplicability,
(SELECT CASE when srv_hd.survey_resend_date is not null then srv_hd.survey_resend_date else srv_hd.survey_sent_date END) requestDate,
srv_hd.survey_response_received_date responseDate,
(SELECT CASE when survey_status_name = 'SENT'
THEN (CASE when srv_hd.is_survey_offline = true THEN 'SENT (offline)' ELSE 'SENT' END )
ELSE (CASE when survey_status_name='RECEIVED' THEN (CASE when srv_hd.is_survey_offline = true THEN 'RECEIVED (offline)' ELSE 'RECEIVED' END)
ELSE survey_status_name END) END
FROM css.survey_status WHERE survey_status_id = srv_hd.survey_status_id) cssstatus,
(SELECT distinct srv.link_status FROM css.survey_link srv WHERE srv.survey_id = srv_hd.survey_id ) linkstatus,
f.freezingflag frozenstatus,
to_date('','DD Mon YYY') frozendate,
case when rcs.status_id is not null then
CASE WHEN rcs.status_id = 1 THEN 'Initiated'
WHEN rcs.status_id = 2 THEN 'Analysed'
WHEN rcs.status_id = 3 THEN 'Planned'
WHEN rcs.status_id = 4 THEN 'Planned'
WHEN rcs.status_id = 5 THEN 'Closed'
ELSE
(SELECT status FROM css.rca_status_mst where id=rcs.status_id) END
else (case when srv_hd.survey_status_id=3000 then 'Not Initiated' else 'Not Applicable' END)
END apricotstatus,
rcs.id as apricotid ,null ,srv_hd.survey_status_id as cssstatusid , srv_hd.updated_ts as updatedts
FROM
css.css_applicable_projects cap,
css.survey_header srv_hd
join
css.projects proj
on proj.project_id=srv_hd.project_id
join css.deliveryunits d
on proj.delivery_unit_id = d.id and d.du_type_id=proj.deliveryunit_type_id
LEFT OUTER JOIN
css.rca_sources rs
ON rs.source_id = srv_hd.survey_id
LEFT OUTER JOIN
css.survey_freezing_info f
ON f.du_id = proj.delivery_unit_id
AND f.du_type_id = proj.deliveryunit_type_id
AND f.financialyearfrom = srv_hd.financialyear_from
and yearhalf =srv_hd.half_year
LEFT OUTER JOIN
css.t_upp_proj_group_map engmap
on engmap.at_projectid=srv_hd.project_id
LEFT OUTER JOIN
css.t_upp_project_group eng
on eng.at_projgrpid=engmap.at_projgrpid
LEFT OUTER JOIN
css.rcas rcs on rcs.id=rs.rca_id,
css.survey_css_header srv_css_hd,
css.client_members_new clmem
where
srv_css_hd.survey_id=srv_hd.survey_id
and srv_hd.project_id=srv_css_hd.project_id
and proj.project_id=srv_hd.project_id
and srv_hd.survey_status_id >= 2000
and srv_hd.survey_status_id <= 11000
and cap.project_id = proj.project_id
and clmem.id = srv_css_hd.contact_person_id
AND srv_hd.financialyear_from||'-'||srv_hd.financialyear_from + 1 ||' '||srv_hd.half_year = '2024-2025 H1'
SELECT DISTINCT
d.id_seq AS parentdeliveryunitid,
d.du_name::VARCHAR AS parentdeliveryUnitName,
dl.du_name AS deliveryunitname,
gd.gdc_name AS gdc,
ip.parent_description AS ou,
cl.name AS accountname,
proj.client_id AS accountid,
proj.project_id AS projectid,
proj.project_name AS projectname,
proj.current_status AS projectstatus,
srv_css_hd.preferred_proj_name AS preferredprojectname,
srv_hd.survey_title AS cssName,
COALESCE(srv_css_hd.tcsindex, -1) AS csipercentage,
srv_hd.id AS surveyid,
srv_hd.survey_id AS ccsid,
eng.at_projgrpid AS engagementId,
eng.at_classification AS engagementComplexity,
CASE
WHEN srv_css_hd.tcsindex IS NOT NULL THEN
CASE
WHEN proj.current_status = 'Closed' THEN
CASE
WHEN rcs.status_id IS NULL OR rcs.status_id NOT IN (4, 5) THEN 'No'
ELSE 'Yes'
END
ELSE
-- Consolidated UNION ALL into a single subquery for better readability and potential optimization
(SELECT
CASE
WHEN SUM(sh_count)::INT = 0 THEN 'No'
ELSE 'Yes'
END AS mandatory_status
FROM (
SELECT COUNT(tcs_satisfier_indicator) AS sh_count
FROM css.survey_css_header
WHERE survey_id = srv_hd.survey_id
AND tcs_satisfier_indicator = 'Dissatisfier'
AND srv_css_hd.tcsindex IS NOT NULL
UNION ALL
SELECT COUNT(tcs_satisfier_indicator) AS sh_count
FROM css.survey_responses
WHERE survey_id = srv_hd.survey_id
AND tcs_satisfier_indicator = 'Dissatisfier'
UNION ALL
SELECT COUNT(ofi_satisfier_indicator) AS sh_count
FROM css.survey_css_header
WHERE survey_id = srv_hd.survey_id
AND ofi_satisfier_indicator = 'Dissatisfier'
AND srv_css_hd.tcsindex IS NOT NULL
AND srv_css_hd.tcsform = 'N'
) AS combined_counts)
END
ELSE ' '
END AS apricotMandatoryStatus,
(srv_hd.financialyear_from || '-' || (srv_hd.financialyear_from + 1))::VARCHAR AS financialyear,
srv_hd.half_year AS halfyear,
mst.survey_type_name AS surveytype,
(COALESCE(clmem.first_name, '') || COALESCE(clmem.middle_name, ' ') || COALESCE(clmem.last_name, ' '))::VARCHAR AS customerrepresentative,
srv_css_hd.tcsform AS cssFormal,
cap.css_applicability_flag AS cssapplicability,
COALESCE(srv_hd.survey_resend_date, srv_hd.survey_sent_date) AS requestDate,
srv_hd.survey_response_received_date AS responseDate,
CASE
WHEN ss.survey_status_name = 'SENT' THEN (CASE WHEN srv_hd.is_survey_offline = TRUE THEN 'SENT (offline)' ELSE 'SENT' END)
WHEN ss.survey_status_name = 'RECEIVED' THEN (CASE WHEN srv_hd.is_survey_offline = TRUE THEN 'RECEIVED (offline)' ELSE 'RECEIVED' END)
ELSE ss.survey_status_name
END AS cssstatus,
sl.link_status AS linkstatus,
f.freezingflag AS frozenstatus,
TO_DATE('', 'DD Mon YYYY') AS frozendate, -- This will likely return NULL as ' ' is not a valid date
CASE
WHEN rcs.status_id IS NOT NULL THEN
CASE
WHEN rcs.status_id = 1 THEN 'Initiated'
WHEN rcs.status_id = 2 THEN 'Analysed'
WHEN rcs.status_id = 3 THEN 'Planned'
WHEN rcs.status_id = 4 THEN 'Planned'
WHEN rcs.status_id = 5 THEN 'Closed'
ELSE rca_s_mst.status
END
ELSE
CASE
WHEN srv_hd.survey_status_id = 3000 THEN 'Not Initiated'
ELSE 'Not Applicable'
END
END AS apricotstatus,
rcs.id AS apricotid,
NULL AS null_column_name, -- Give this a proper name if it serves a purpose
srv_hd.survey_status_id AS cssstatusid,
srv_hd.updated_ts AS updatedts
FROM
css.css_applicable_projects cap
JOIN
css.projects proj ON cap.project_id = proj.project_id
JOIN
css.survey_header srv_hd ON proj.project_id = srv_hd.project_id
JOIN
css.deliveryunits d ON proj.delivery_unit_id = d.id AND d.du_type_id = proj.deliveryunit_type_id
JOIN
css.survey_css_header srv_css_hd ON srv_css_hd.survey_id = srv_hd.survey_id AND srv_hd.project_id = srv_css_hd.project_id
JOIN
css.client_members_new clmem ON clmem.id = srv_css_hd.contact_person_id
--- Optimized Subqueries by converting to LEFT JOINs ---
LEFT JOIN
css.deliveryunits dl ON dl.id = proj.sub_du_id
LEFT JOIN
css.gdcmst gd ON gd.gdc_code = proj.operational_dc
LEFT JOIN
css.ip_master ip ON ip.id = proj.ip_id
LEFT JOIN
css.clients cl ON cl.id = proj.client_id
LEFT JOIN
css.survey_types_mst mst ON mst.survey_type_id = srv_hd.survey_type_id
LEFT JOIN
css.survey_status ss ON ss.survey_status_id = srv_hd.survey_status_id
LEFT JOIN
css.survey_link sl ON sl.survey_id = srv_hd.survey_id
LEFT JOIN
css.rca_status_mst rca_s_mst ON rca_s_mst.id = rcs.status_id
--- Existing LEFT JOINs ---
LEFT OUTER JOIN
css.rca_sources rs ON rs.source_id = srv_hd.survey_id
LEFT OUTER JOIN
css.survey_freezing_info f ON f.du_id = proj.delivery_unit_id
AND f.du_type_id = proj.deliveryunit_type_id
AND f.financialyearfrom = srv_hd.financialyear_from
AND f.yearhalf = srv_hd.half_year
LEFT OUTER JOIN
css.t_upp_proj_group_map engmap ON engmap.at_projectid = srv_hd.project_id
LEFT OUTER JOIN
css.t_upp_project_group eng ON eng.at_projgrpid = engmap.at_projgrpid
LEFT OUTER JOIN
css.rcas rcs ON rcs.id = rs.rca_id
WHERE
srv_hd.survey_status_id BETWEEN 2000 AND 11000
AND (srv_hd.financialyear_from || '-' || (srv_hd.financialyear_from + 1) || ' ' || srv_hd.half_year) = '2024-2025 H1';
"QUERY PLAN"
"[
{
""Plan"": {
""Node Type"": ""Unique"",
""Parallel Aware"": false,
""Async Capable"": false,
""Startup Cost"": 21014.10,
""Total Cost"": 21014.19,
""Plan Rows"": 1,
""Plan Width"": 2279,
""Actual Startup Time"": 401.749,
""Actual Total Time"": 409.118,
""Actual Rows"": 10614,
""Actual Loops"": 1,
""Output"": [""d.id_seq"", ""((d.du_name)::character varying)"", ""((SubPlan 1))"", ""((SubPlan 2))"", ""((SubPlan 3))"", ""((SubPlan 4))"", ""proj.client_id"", ""proj.project_id"", ""proj.project_name"", ""proj.current_status"", ""srv_css_hd.preferred_proj_name"", ""srv_hd.survey_title"", ""(CASE WHEN (srv_css_hd.tcsindex IS NULL) THEN '-1'::numeric ELSE srv_css_hd.tcsindex END)"", ""srv_hd.id"", ""srv_hd.survey_id"", ""eng.at_projgrpid"", ""eng.at_classification"", ""((SubPlan 6))"", ""(((((srv_hd.financialyear_from)::text || '-'::text) || ((srv_hd.financialyear_from + 1))::text))::character varying)"", ""srv_hd.half_year"", ""((SubPlan 7))"", ""(((((COALESCE(clmem.first_name, ' '::character varying))::text || (COALESCE(clmem.middle_name, ' '::character varying))::text) || (COALESCE(clmem.last_name, ' '::character varying))::text))::character varying)"", ""srv_css_hd.tcsform"", ""cap.css_applicability_flag"", ""((SubPlan 8))"", ""srv_hd.survey_response_received_date"", ""((SubPlan 9))"", ""((SubPlan 10))"", ""f.freezingflag"", ""(to_date(''::character varying, 'DD Mon YYY'::character varying))"", ""(CASE WHEN (rcs.status_id IS NOT NULL) THEN (CASE WHEN (rcs.status_id = 1) THEN 'Initiated'::character varying WHEN (rcs.status_id = 2) THEN 'Analysed'::character varying WHEN (rcs.status_id = 3) THEN 'Planned'::character varying WHEN (rcs.status_id = 4) THEN 'Planned'::character varying WHEN (rcs.status_id = 5) THEN 'Closed'::character varying ELSE (SubPlan 11) END)::text ELSE CASE WHEN (srv_hd.survey_status_id = 3000) THEN 'Not Initiated'::text ELSE 'Not Applicable'::text END END)"", ""rcs.id"", ""NULL::text"", ""srv_hd.survey_status_id"", ""srv_hd.updated_ts""],
""Shared Hit Blocks"": 739506,
""Shared Read Blocks"": 0,
""Shared Dirtied Blocks"": 0,
""Shared Written Blocks"": 0,
""Local Hit Blocks"": 0,
""Local Read Blocks"": 0,
""Local Dirtied Blocks"": 0,
""Local Written Blocks"": 0,
""Temp Read Blocks"": 471,
""Temp Written Blocks"": 472,
""WAL Records"": 0,
""WAL FPI"": 0,
""WAL Bytes"": 0,
""Plans"": [
{
""Node Type"": ""Sort"",
""Parent Relationship"": ""Outer"",
""Parallel Aware"": false,
""Async Capable"": false,
""Startup Cost"": 21014.10,
""Total Cost"": 21014.10,
""Plan Rows"": 1,
""Plan Width"": 2279,
""Actual Startup Time"": 401.748,
""Actual Total Time"": 405.184,
""Actual Rows"": 10648,
""Actual Loops"": 1,
""Output"": [""d.id_seq"", ""((d.du_name)::character varying)"", ""((SubPlan 1))"", ""((SubPlan 2))"", ""((SubPlan 3))"", ""((SubPlan 4))"", ""proj.client_id"", ""proj.project_id"", ""proj.project_name"", ""proj.current_status"", ""srv_css_hd.preferred_proj_name"", ""srv_hd.survey_title"", ""(CASE WHEN (srv_css_hd.tcsindex IS NULL) THEN '-1'::numeric ELSE srv_css_hd.tcsindex END)"", ""srv_hd.id"", ""srv_hd.survey_id"", ""eng.at_projgrpid"", ""eng.at_classification"", ""((SubPlan 6))"", ""(((((srv_hd.financialyear_from)::text || '-'::text) || ((srv_hd.financialyear_from + 1))::text))::character varying)"", ""srv_hd.half_year"", ""((SubPlan 7))"", ""(((((COALESCE(clmem.first_name, ' '::character varying))::text || (COALESCE(clmem.middle_name, ' '::character varying))::text) || (COALESCE(clmem.last_name, ' '::character varying))::text))::character varying)"", ""srv_css_hd.tcsform"", ""cap.css_applicability_flag"", ""((SubPlan 8))"", ""srv_hd.survey_response_received_date"", ""((SubPlan 9))"", ""((SubPlan 10))"", ""f.freezingflag"", ""(to_date(''::character varying, 'DD Mon YYY'::character varying))"", ""(CASE WHEN (rcs.status_id IS NOT NULL) THEN (CASE WHEN (rcs.status_id = 1) THEN 'Initiated'::character varying WHEN (rcs.status_id = 2) THEN 'Analysed'::character varying WHEN (rcs.status_id = 3) THEN 'Planned'::character varying WHEN (rcs.status_id = 4) THEN 'Planned'::character varying WHEN (rcs.status_id = 5) THEN 'Closed'::character varying ELSE (SubPlan 11) END)::text ELSE CASE WHEN (srv_hd.survey_status_id = 3000) THEN 'Not Initiated'::text ELSE 'Not Applicable'::text END END)"", ""rcs.id"", ""NULL::text"", ""srv_hd.survey_status_id"", ""srv_hd.updated_ts""],
""Sort Key"": [""d.id_seq"", ""((d.du_name)::character varying)"", ""((SubPlan 1))"", ""((SubPlan 2))"", ""((SubPlan 3))"", ""((SubPlan 4))"", ""proj.client_id"", ""proj.project_id"", ""proj.project_name"", ""proj.current_status"", ""srv_css_hd.preferred_proj_name"", ""srv_hd.survey_title"", ""(CASE WHEN (srv_css_hd.tcsindex IS NULL) THEN '-1'::numeric ELSE srv_css_hd.tcsindex END)"", ""srv_hd.id"", ""srv_hd.survey_id"", ""eng.at_projgrpid"", ""eng.at_classification"", ""((SubPlan 6))"", ""(((((srv_hd.financialyear_from)::text || '-'::text) || ((srv_hd.financialyear_from + 1))::text))::character varying)"", ""srv_hd.half_year"", ""((SubPlan 7))"", ""(((((COALESCE(clmem.first_name, ' '::character varying))::text || (COALESCE(clmem.middle_name, ' '::character varying))::text) || (COALESCE(clmem.last_name, ' '::character varying))::text))::character varying)"", ""srv_css_hd.tcsform"", ""cap.css_applicability_flag"", ""((SubPlan 8))"", ""srv_hd.survey_response_received_date"", ""((SubPlan 9))"", ""((SubPlan 10))"", ""f.freezingflag"", ""(CASE WHEN (rcs.status_id IS NOT NULL) THEN (CASE WHEN (rcs.status_id = 1) THEN 'Initiated'::character varying WHEN (rcs.status_id = 2) THEN 'Analysed'::character varying WHEN (rcs.status_id = 3) THEN 'Planned'::character varying WHEN (rcs.status_id = 4) THEN 'Planned'::character varying WHEN (rcs.status_id = 5) THEN 'Closed'::character varying ELSE (SubPlan 11) END)::text ELSE CASE WHEN (srv_hd.survey_status_id = 3000) THEN 'Not Initiated'::text ELSE 'Not Applicable'::text END END)"", ""rcs.id"", ""srv_hd.survey_status_id"", ""srv_hd.updated_ts""],
""Sort Method"": ""external merge"",
""Sort Space Used"": 3768,
""Sort Space Type"": ""Disk"",
""Shared Hit Blocks"": 739506,
""Shared Read Blocks"": 0,
""Shared Dirtied Blocks"": 0,
""Shared Written Blocks"": 0,
""Local Hit Blocks"": 0,
""Local Read Blocks"": 0,
""Local Dirtied Blocks"": 0,
""Local Written Blocks"": 0,
""Temp Read Blocks"": 471,
""Temp Written Blocks"": 472,
""WAL Records"": 0,
""WAL FPI"": 0,
""WAL Bytes"": 0,
""Plans"": [
{
""Node Type"": ""Nested Loop"",
""Parent Relationship"": ""Outer"",
""Parallel Aware"": false,
""Async Capable"": false,
""Join Type"": ""Inner"",
""Startup Cost"": 1067.42,
""Total Cost"": 21014.09,
""Plan Rows"": 1,
""Plan Width"": 2279,
""Actual Startup Time"": 1.975,
""Actual Total Time"": 363.098,
""Actual Rows"": 10648,
""Actual Loops"": 1,
""Output"": [""d.id_seq"", ""(d.du_name)::character varying"", ""(SubPlan 1)"", ""(SubPlan 2)"", ""(SubPlan 3)"", ""(SubPlan 4)"", ""proj.client_id"", ""proj.project_id"", ""proj.project_name"", ""proj.current_status"", ""srv_css_hd.preferred_proj_name"", ""srv_hd.survey_title"", ""CASE WHEN (srv_css_hd.tcsindex IS NULL) THEN '-1'::numeric ELSE srv_css_hd.tcsindex END"", ""srv_hd.id"", ""srv_hd.survey_id"", ""eng.at_projgrpid"", ""eng.at_classification"", ""(SubPlan 6)"", ""((((srv_hd.financialyear_from)::text || '-'::text) || ((srv_hd.financialyear_from + 1))::text))::character varying"", ""srv_hd.half_year"", ""(SubPlan 7)"", ""((((COALESCE(clmem.first_name, ' '::character varying))::text || (COALESCE(clmem.middle_name, ' '::character varying))::text) || (COALESCE(clmem.last_name, ' '::character varying))::text))::character varying"", ""srv_css_hd.tcsform"", ""cap.css_applicability_flag"", ""(SubPlan 8)"", ""srv_hd.survey_response_received_date"", ""(SubPlan 9)"", ""(SubPlan 10)"", ""f.freezingflag"", ""to_date(''::character varying, 'DD Mon YYY'::character varying)"", ""CASE WHEN (rcs.status_id IS NOT NULL) THEN (CASE WHEN (rcs.status_id = 1) THEN 'Initiated'::character varying WHEN (rcs.status_id = 2) THEN 'Analysed'::character varying WHEN (rcs.status_id = 3) THEN 'Planned'::character varying WHEN (rcs.status_id = 4) THEN 'Planned'::character varying WHEN (rcs.status_id = 5) THEN 'Closed'::character varying ELSE (SubPlan 11) END)::text ELSE CASE WHEN (srv_hd.survey_status_id = 3000) THEN 'Not Initiated'::text ELSE 'Not Applicable'::text END END"", ""rcs.id"", ""NULL::text"", ""srv_hd.survey_status_id"", ""srv_hd.updated_ts""],
""Inner Unique"": true,
""Shared Hit Blocks"": 739506,
""Shared Read Blocks"": 0,
""Shared Dirtied Blocks"": 0,
""Shared Written Blocks"": 0,
""Local Hit Blocks"": 0,
""Local Read Blocks"": 0,
""Local Dirtied Blocks"": 0,
""Local Written Blocks"": 0,
""Temp Read Blocks"": 0,
""Temp Written Blocks"": 0,
""WAL Records"": 0,
""WAL FPI"": 0,
""WAL Bytes"": 0,
""Plans"": [
{
""Node Type"": ""Nested Loop"",
""Parent Relationship"": ""Outer"",
""Parallel Aware"": false,
""Async Capable"": false,
""Join Type"": ""Inner"",
""Startup Cost"": 1067.00,
""Total Cost"": 20899.93,
""Plan Rows"": 1,
""Plan Width"": 212,
""Actual Startup Time"": 1.893,
""Actual Total Time"": 58.679,
""Actual Rows"": 10648,
""Actual Loops"": 1,
""Output"": [""cap.css_applicability_flag"", ""srv_hd.survey_title"", ""srv_hd.id"", ""srv_hd.survey_id"", ""srv_hd.financialyear_from"", ""srv_hd.half_year"", ""srv_hd.survey_type_id"", ""srv_hd.survey_resend_date"", ""srv_hd.survey_sent_date"", ""srv_hd.survey_response_received_date"", ""srv_hd.is_survey_offline"", ""srv_hd.survey_status_id"", ""srv_hd.updated_ts"", ""proj.sub_du_id"", ""proj.operational_dc"", ""proj.ip_id"", ""proj.client_id"", ""proj.project_id"", ""proj.project_name"", ""proj.current_status"", ""d.id_seq"", ""d.du_name"", ""f.freezingflag"", ""eng.at_projgrpid"", ""eng.at_classification"", ""rcs.status_id"", ""rcs.id"", ""srv_css_hd.preferred_proj_name"", ""srv_css_hd.tcsindex"", ""srv_css_hd.tcsform"", ""srv_css_hd.contact_person_id""],
""Inner Unique"": true,
""Shared Hit Blocks"": 435950,
""Shared Read Blocks"": 0,
""Shared Dirtied Blocks"": 0,
""Shared Written Blocks"": 0,
""Local Hit Blocks"": 0,
""Local Read Blocks"": 0,
""Local Dirtied Blocks"": 0,
""Local Written Blocks"": 0,
""Temp Read Blocks"": 0,
""Temp Written Blocks"": 0,
""WAL Records"": 0,
""WAL FPI"": 0,
""WAL Bytes"": 0,
""Plans"": [
{
""Node Type"": ""Gather"",
""Parent Relationship"": ""Outer"",
""Parallel Aware"": false,
""Async Capable"": false,
""Startup Cost"": 1066.58,
""Total Cost"": 20899.47,
""Plan Rows"": 1,
""Plan Width"": 218,
""Actual Startup Time"": 1.886,
""Actual Total Time"": 28.494,
""Actual Rows"": 10648,
""Actual Loops"": 1,
""Output"": [""srv_hd.survey_title"", ""srv_hd.id"", ""srv_hd.survey_id"", ""srv_hd.financialyear_from"", ""srv_hd.half_year"", ""srv_hd.survey_type_id"", ""srv_hd.survey_resend_date"", ""srv_hd.survey_sent_date"", ""srv_hd.survey_response_received_date"", ""srv_hd.is_survey_offline"", ""srv_hd.survey_status_id"", ""srv_hd.updated_ts"", ""srv_hd.project_id"", ""proj.sub_du_id"", ""proj.operational_dc"", ""proj.ip_id"", ""proj.client_id"", ""proj.project_id"", ""proj.project_name"", ""proj.current_status"", ""d.id_seq"", ""d.du_name"", ""f.freezingflag"", ""eng.at_projgrpid"", ""eng.at_classification"", ""rcs.status_id"", ""rcs.id"", ""srv_css_hd.preferred_proj_name"", ""srv_css_hd.tcsindex"", ""srv_css_hd.tcsform"", ""srv_css_hd.project_id"", ""srv_css_hd.contact_person_id""],
""Workers Planned"": 3,
""Workers Launched"": 3,
""Single Copy"": false,
""Shared Hit Blocks"": 393358,
""Shared Read Blocks"": 0,
""Shared Dirtied Blocks"": 0,
""Shared Written Blocks"": 0,
""Local Hit Blocks"": 0,
""Local Read Blocks"": 0,
""Local Dirtied Blocks"": 0,
""Local Written Blocks"": 0,
""Temp Read Blocks"": 0,
""Temp Written Blocks"": 0,
""WAL Records"": 0,
""WAL FPI"": 0,
""WAL Bytes"": 0,
""Plans"": [
{
""Node Type"": ""Nested Loop"",
""Parent Relationship"": ""Outer"",
""Parallel Aware"": false,
""Async Capable"": false,
""Join Type"": ""Inner"",
""Startup Cost"": 66.58,
""Total Cost"": 19899.37,
""Plan Rows"": 1,
""Plan Width"": 218,
""Actual Startup Time"": 7.711,
""Actual Total Time"": 94.996,
""Actual Rows"": 2662,
""Actual Loops"": 4,
""Output"": [""srv_hd.survey_title"", ""srv_hd.id"", ""srv_hd.survey_id"", ""srv_hd.financialyear_from"", ""srv_hd.half_year"", ""srv_hd.survey_type_id"", ""srv_hd.survey_resend_date"", ""srv_hd.survey_sent_date"", ""srv_hd.survey_response_received_date"", ""srv_hd.is_survey_offline"", ""srv_hd.survey_status_id"", ""srv_hd.updated_ts"", ""srv_hd.project_id"", ""proj.sub_du_id"", ""proj.operational_dc"", ""proj.ip_id"", ""proj.client_id"", ""proj.project_id"", ""proj.project_name"", ""proj.current_status"", ""d.id_seq"", ""d.du_name"", ""f.freezingflag"", ""eng.at_projgrpid"", ""eng.at_classification"", ""rcs.status_id"", ""rcs.id"", ""srv_css_hd.preferred_proj_name"", ""srv_css_hd.tcsindex"", ""srv_css_hd.tcsform"", ""srv_css_hd.project_id"", ""srv_css_hd.contact_person_id""],
""Inner Unique"": true,
""Join Filter"": ""(proj.project_id = srv_css_hd.project_id)"",
""Rows Removed by Join Filter"": 0,
""Shared Hit Blocks"": 393358,
""Shared Read Blocks"": 0,
""Shared Dirtied Blocks"": 0,
""Shared Written Blocks"": 0,
""Local Hit Blocks"": 0,
""Local Read Blocks"": 0,
""Local Dirtied Blocks"": 0,
""Local Written Blocks"": 0,
""Temp Read Blocks"": 0,
""Temp Written Blocks"": 0,
""WAL Records"": 0,
""WAL FPI"": 0,
""WAL Bytes"": 0,
""Workers"": [
{
""Worker Number"": 0,
""Actual Startup Time"": 9.688,
""Actual Total Time"": 243.328,
""Actual Rows"": 8703,
""Actual Loops"": 1,
""Shared Hit Blocks"": 316984,
""Shared Read Blocks"": 0,
""Shared Dirtied Blocks"": 0,
""Shared Written Blocks"": 0,
""Local Hit Blocks"": 0,
""Local Read Blocks"": 0,
""Local Dirtied Blocks"": 0,
""Local Written Blocks"": 0,
""Temp Read Blocks"": 0,
""Temp Written Blocks"": 0,
""WAL Records"": 0,
""WAL FPI"": 0,
""WAL Bytes"": 0
},
{
""Worker Number"": 1,
""Actual Startup Time"": 9.939,
""Actual Total Time"": 65.879,
""Actual Rows"": 1183,
""Actual Loops"": 1,
""Shared Hit Blocks"": 45133,
""Shared Read Blocks"": 0,
""Shared Dirtied Blocks"": 0,
""Shared Written Blocks"": 0,
""Local Hit Blocks"": 0,
""Local Read Blocks"": 0,
""Local Dirtied Blocks"": 0,
""Local Written Blocks"": 0,
""Temp Read Blocks"": 0,
""Temp Written Blocks"": 0,
""WAL Records"": 0,
""WAL FPI"": 0,
""WAL Bytes"": 0
},
{
""Worker Number"": 2,
""Actual Startup Time"": 10.614,
""Actual Total Time"": 47.347,
""Actual Rows"": 711,
""Actual Loops"": 1,
""Shared Hit Blocks"": 27606,
""Shared Read Blocks"": 0,
""Shared Dirtied Blocks"": 0,
""Shared Written Blocks"": 0,
""Local Hit Blocks"": 0,
""Local Read Blocks"": 0,
""Local Dirtied Blocks"": 0,
""Local Written Blocks"": 0,
""Temp Read Blocks"": 0,
""Temp Written Blocks"": 0,
""WAL Records"": 0,
""WAL FPI"": 0,
""WAL Bytes"": 0
}
],
""Plans"": [
{
""Node Type"": ""Nested Loop"",
""Parent Relationship"": ""Outer"",
""Parallel Aware"": false,
""Async Capable"": false,
""Join Type"": ""Left"",
""Startup Cost"": 66.16,
""Total Cost"": 19278.96,
""Plan Rows"": 293,
""Plan Width"": 177,
""Actual Startup Time"": 7.686,
""Actual Total Time"": 89.817,
""Actual Rows"": 2662,
""Actual Loops"": 4,
""Output"": [""srv_hd.survey_title"", ""srv_hd.id"", ""srv_hd.survey_id"", ""srv_hd.financialyear_from"", ""srv_hd.half_year"", ""srv_hd.survey_type_id"", ""srv_hd.survey_resend_date"", ""srv_hd.survey_sent_date"", ""srv_hd.survey_response_received_date"", ""srv_hd.is_survey_offline"", ""srv_hd.survey_status_id"", ""srv_hd.updated_ts"", ""srv_hd.project_id"", ""proj.sub_du_id"", ""proj.operational_dc"", ""proj.ip_id"", ""proj.client_id"", ""proj.project_id"", ""proj.project_name"", ""proj.current_status"", ""d.id_seq"", ""d.du_name"", ""f.freezingflag"", ""eng.at_projgrpid"", ""eng.at_classification"", ""rcs.status_id"", ""rcs.id""],
""Inner Unique"": true,
""Shared Hit Blocks"": 350763,
""Shared Read Blocks"": 0,
""Shared Dirtied Blocks"": 0,
""Shared Written Blocks"": 0,
""Local Hit Blocks"": 0,
""Local Read Blocks"": 0,
""Local Dirtied Blocks"": 0,
""Local Written Blocks"": 0,
""Temp Read Blocks"": 0,
""Temp Written Blocks"": 0,
""WAL Records"": 0,
""WAL FPI"": 0,
""WAL Bytes"": 0,
""Workers"": [
{
""Worker Number"": 0,
""Actual Startup Time"": 9.665,
""Actual Total Time"": 227.335,
""Actual Rows"": 8703,
""Actual Loops"": 1,
""Shared Hit Blocks"": 282171,
""Shared Read Blocks"": 0,
""Shared Dirtied Blocks"": 0,
""Shared Written Blocks"": 0,
""Local Hit Blocks"": 0,
""Local Read Blocks"": 0,
""Local Dirtied Blocks"": 0,
""Local Written Blocks"": 0,
""Temp Read Blocks"": 0,
""Temp Written Blocks"": 0,
""WAL Records"": 0,
""WAL FPI"": 0,
""WAL Bytes"": 0
},
{
""Worker Number"": 1,
""Actual Startup Time"": 9.916,
""Actual Total Time"": 63.101,
""Actual Rows"": 1183,
""Actual Loops"": 1,
""Shared Hit Blocks"": 40400,
""Shared Read Blocks"": 0,
""Shared Dirtied Blocks"": 0,
""Shared Written Blocks"": 0,
""Local Hit Blocks"": 0,
""Local Read Blocks"": 0,
""Local Dirtied Blocks"": 0,
""Local Written Blocks"": 0,
""Temp Read Blocks"": 0,
""Temp Written Blocks"": 0,
""WAL Records"": 0,
""WAL FPI"": 0,
""WAL Bytes"": 0
},
{
""Worker Number"": 2,
""Actual Startup Time"": 10.570,
""Actual Total Time"": 45.564,
""Actual Rows"": 711,
""Actual Loops"": 1,
""Shared Hit Blocks"": 24761,
""Shared Read Blocks"": 0,
""Shared Dirtied Blocks"": 0,
""Shared Written Blocks"": 0,
""Local Hit Blocks"": 0,
""Local Read Blocks"": 0,
""Local Dirtied Blocks"": 0,
""Local Written Blocks"": 0,
""Temp Read Blocks"": 0,
""Temp Written Blocks"": 0,
""WAL Records"": 0,
""WAL FPI"": 0,
""WAL Bytes"": 0
}
],
""Plans"": [
{
""Node Type"": ""Nested Loop"",
""Parent Relationship"": ""Outer"",
""Parallel Aware"": false,
""Async Capable"": false,
""Join Type"": ""Left"",
""Startup Cost"": 65.87,
""Total Cost"": 19178.92,
""Plan Rows"": 293,
""Plan Width"": 173,
""Actual Startup Time"": 7.674,
""Actual Total Time"": 85.853,
""Actual Rows"": 2662,
""Actual Loops"": 4,
""Output"": [""srv_hd.survey_title"", ""srv_hd.id"", ""srv_hd.survey_id"", ""srv_hd.financialyear_from"", ""srv_hd.half_year"", ""srv_hd.survey_type_id"", ""srv_hd.survey_resend_date"", ""srv_hd.survey_sent_date"", ""srv_hd.survey_response_received_date"", ""srv_hd.is_survey_offline"", ""srv_hd.survey_status_id"", ""srv_hd.updated_ts"", ""srv_hd.project_id"", ""proj.sub_du_id"", ""proj.operational_dc"", ""proj.ip_id"", ""proj.client_id"", ""proj.project_id"", ""proj.project_name"", ""proj.current_status"", ""d.id_seq"", ""d.du_name"", ""rs.rca_id"", ""f.freezingflag"", ""eng.at_projgrpid"", ""eng.at_classification""],
""Inner Unique"": true,
""Shared Hit Blocks"": 330126,
""Shared Read Blocks"": 0,
""Shared Dirtied Blocks"": 0,
""Shared Written Blocks"": 0,
""Local Hit Blocks"": 0,
""Local Read Blocks"": 0,
""Local Dirtied Blocks"": 0,
""Local Written Blocks"": 0,
""Temp Read Blocks"": 0,
""Temp Written Blocks"": 0,
""WAL Records"": 0,
""WAL FPI"": 0,
""WAL Bytes"": 0,
""Workers"": [
{
""Worker Number"": 0,
""Actual Startup Time"": 9.642,
""Actual Total Time"": 214.635,
""Actual Rows"": 8703,
""Actual Loops"": 1,
""Shared Hit Blocks"": 264365,
""Shared Read Blocks"": 0,
""Shared Dirtied Blocks"": 0,
""Shared Written Blocks"": 0,
""Local Hit Blocks"": 0,
""Local Read Blocks"": 0,
""Local Dirtied Blocks"": 0,
""Local Written Blocks"": 0,
""Temp Read Blocks"": 0,
""Temp Written Blocks"": 0,
""WAL Records"": 0,
""WAL FPI"": 0,
""WAL Bytes"": 0
},
{
""Worker Number"": 1,
""Actual Startup Time"": 9.899,
""Actual Total Time"": 61.327,
""Actual Rows"": 1183,
""Actual Loops"": 1,
""Shared Hit Blocks"": 38701,
""Shared Read Blocks"": 0,
""Shared Dirtied Blocks"": 0,
""Shared Written Blocks"": 0,
""Local Hit Blocks"": 0,
""Local Read Blocks"": 0,
""Local Dirtied Blocks"": 0,
""Local Written Blocks"": 0,
""Temp Read Blocks"": 0,
""Temp Written Blocks"": 0,
""WAL Records"": 0,
""WAL FPI"": 0,
""WAL Bytes"": 0
},
{
""Worker Number"": 2,
""Actual Startup Time"": 10.564,
""Actual Total Time"": 44.334,
""Actual Rows"": 711,
""Actual Loops"": 1,
""Shared Hit Blocks"": 23728,
""Shared Read Blocks"": 0,
""Shared Dirtied Blocks"": 0,
""Shared Written Blocks"": 0,
""Local Hit Blocks"": 0,
""Local Read Blocks"": 0,
""Local Dirtied Blocks"": 0,
""Local Written Blocks"": 0,
""Temp Read Blocks"": 0,
""Temp Written Blocks"": 0,
""WAL Records"": 0,
""WAL FPI"": 0,
""WAL Bytes"": 0
}
],
""Plans"": [
{
""Node Type"": ""Nested Loop"",
""Parent Relationship"": ""Outer"",
""Parallel Aware"": false,
""Async Capable"": false,
""Join Type"": ""Left"",
""Startup Cost"": 65.45,
""Total Cost"": 19031.45,
""Plan Rows"": 293,
""Plan Width"": 169,
""Actual Startup Time"": 7.654,
""Actual Total Time"": 76.459,
""Actual Rows"": 2662,
""Actual Loops"": 4,
""Output"": [""srv_hd.survey_title"", ""srv_hd.id"", ""srv_hd.survey_id"", ""srv_hd.financialyear_from"", ""srv_hd.half_year"", ""srv_hd.survey_type_id"", ""srv_hd.survey_resend_date"", ""srv_hd.survey_sent_date"", ""srv_hd.survey_response_received_date"", ""srv_hd.is_survey_offline"", ""srv_hd.survey_status_id"", ""srv_hd.updated_ts"", ""srv_hd.project_id"", ""proj.sub_du_id"", ""proj.operational_dc"", ""proj.ip_id"", ""proj.client_id"", ""proj.project_id"", ""proj.project_name"", ""proj.current_status"", ""d.id_seq"", ""d.du_name"", ""rs.rca_id"", ""f.freezingflag"", ""engmap.at_projgrpid""],
""Inner Unique"": false,
""Shared Hit Blocks"": 287543,
""Shared Read Blocks"": 0,
""Shared Dirtied Blocks"": 0,
""Shared Written Blocks"": 0,
""Local Hit Blocks"": 0,
""Local Read Blocks"": 0,
""Local Dirtied Blocks"": 0,
""Local Written Blocks"": 0,
""Temp Read Blocks"": 0,
""Temp Written Blocks"": 0,
""WAL Records"": 0,
""WAL FPI"": 0,
""WAL Bytes"": 0,
""Workers"": [
{
""Worker Number"": 0,
""Actual Startup Time"": 9.619,
""Actual Total Time"": 185.914,
""Actual Rows"": 8703,
""Actual Loops"": 1,
""Shared Hit Blocks"": 229556,
""Shared Read Blocks"": 0,
""Shared Dirtied Blocks"": 0,
""Shared Written Blocks"": 0,
""Local Hit Blocks"": 0,
""Local Read Blocks"": 0,
""Local Dirtied Blocks"": 0,
""Local Written Blocks"": 0,
""Temp Read Blocks"": 0,
""Temp Written Blocks"": 0,
""WAL Records"": 0,
""WAL FPI"": 0,
""WAL Bytes"": 0
},
{
""Worker Number"": 1,
""Actual Startup Time"": 9.876,
""Actual Total Time"": 56.211,
""Actual Rows"": 1183,
""Actual Loops"": 1,
""Shared Hit Blocks"": 33976,
""Shared Read Blocks"": 0,
""Shared Dirtied Blocks"": 0,
""Shared Written Blocks"": 0,
""Local Hit Blocks"": 0,
""Local Read Blocks"": 0,
""Local Dirtied Blocks"": 0,
""Local Written Blocks"": 0,
""Temp Read Blocks"": 0,
""Temp Written Blocks"": 0,
""WAL Records"": 0,
""WAL FPI"": 0,
""WAL Bytes"": 0
},
{
""Worker Number"": 2,
""Actual Startup Time"": 10.541,
""Actual Total Time"": 40.829,
""Actual Rows"": 711,
""Actual Loops"": 1,
""Shared Hit Blocks"": 20883,
""Shared Read Blocks"": 0,
""Shared Dirtied Blocks"": 0,
""Shared Written Blocks"": 0,
""Local Hit Blocks"": 0,
""Local Read Blocks"": 0,
""Local Dirtied Blocks"": 0,
""Local Written Blocks"": 0,
""Temp Read Blocks"": 0,
""Temp Written Blocks"": 0,
""WAL Records"": 0,
""WAL FPI"": 0,
""WAL Bytes"": 0
}
],
""Plans"": [
{
""Node Type"": ""Nested Loop"",
""Parent Relationship"": ""Outer"",
""Parallel Aware"": false,
""Async Capable"": false,
""Join Type"": ""Left"",
""Startup Cost"": 65.03,
""Total Cost"": 18424.89,
""Plan Rows"": 293,
""Plan Width"": 163,
""Actual Startup Time"": 7.628,
""Actual Total Time"": 65.706,
""Actual Rows"": 2662,
""Actual Loops"": 4,
""Output"": [""srv_hd.survey_title"", ""srv_hd.id"", ""srv_hd.survey_id"", ""srv_hd.financialyear_from"", ""srv_hd.half_year"", ""srv_hd.survey_type_id"", ""srv_hd.survey_resend_date"", ""srv_hd.survey_sent_date"", ""srv_hd.survey_response_received_date"", ""srv_hd.is_survey_offline"", ""srv_hd.survey_status_id"", ""srv_hd.updated_ts"", ""srv_hd.project_id"", ""proj.sub_du_id"", ""proj.operational_dc"", ""proj.ip_id"", ""proj.client_id"", ""proj.project_id"", ""proj.project_name"", ""proj.current_status"", ""d.id_seq"", ""d.du_name"", ""rs.rca_id"", ""f.freezingflag""],
""Inner Unique"": false,
""Shared Hit Blocks"": 244951,
""Shared Read Blocks"": 0,
""Shared Dirtied Blocks"": 0,
""Shared Written Blocks"": 0,
""Local Hit Blocks"": 0,
""Local Read Blocks"": 0,
""Local Dirtied Blocks"": 0,
""Local Written Blocks"": 0,
""Temp Read Blocks"": 0,
""Temp Written Blocks"": 0,
""WAL Records"": 0,
""WAL FPI"": 0,
""WAL Bytes"": 0,
""Workers"": [
{
""Worker Number"": 0,
""Actual Startup Time"": 9.567,
""Actual Total Time"": 152.625,
""Actual Rows"": 8703,
""Actual Loops"": 1,
""Shared Hit Blocks"": 194744,
""Shared Read Blocks"": 0,
""Shared Dirtied Blocks"": 0,
""Shared Written Blocks"": 0,
""Local Hit Blocks"": 0,
""Local Read Blocks"": 0,
""Local Dirtied Blocks"": 0,
""Local Written Blocks"": 0,
""Temp Read Blocks"": 0,
""Temp Written Blocks"": 0,
""WAL Records"": 0,
""WAL FPI"": 0,
""WAL Bytes"": 0
},
{
""Worker Number"": 1,
""Actual Startup Time"": 9.852,
""Actual Total Time"": 50.507,
""Actual Rows"": 1183,
""Actual Loops"": 1,
""Shared Hit Blocks"": 29245,
""Shared Read Blocks"": 0,
""Shared Dirtied Blocks"": 0,
""Shared Written Blocks"": 0,
""Local Hit Blocks"": 0,
""Local Read Blocks"": 0,
""Local Dirtied Blocks"": 0,
""Local Written Blocks"": 0,
""Temp Read Blocks"": 0,
""Temp Written Blocks"": 0,
""WAL Records"": 0,
""WAL FPI"": 0,
""WAL Bytes"": 0
},
{
""Worker Number"": 2,
""Actual Startup Time"": 10.521,
""Actual Total Time"": 37.073,
""Actual Rows"": 711,
""Actual Loops"": 1,
""Shared Hit Blocks"": 18038,
""Shared Read Blocks"": 0,
""Shared Dirtied Blocks"": 0,
""Shared Written Blocks"": 0,
""Local Hit Blocks"": 0,
""Local Read Blocks"": 0,
""Local Dirtied Blocks"": 0,
""Local Written Blocks"": 0,
""Temp Read Blocks"": 0,
""Temp Written Blocks"": 0,
""WAL Records"": 0,
""WAL FPI"": 0,
""WAL Bytes"": 0
}
],
""Plans"": [
{
""Node Type"": ""Hash Join"",
""Parent Relationship"": ""Outer"",
""Parallel Aware"": false,
""Async Capable"": false,
""Join Type"": ""Inner"",
""Startup Cost"": 64.73,
""Total Cost"": 18112.14,
""Plan Rows"": 293,
""Plan Width"": 159,
""Actual Startup Time"": 7.610,
""Actual Total Time"": 61.860,
""Actual Rows"": 2646,
""Actual Loops"": 4,
""Output"": [""srv_hd.survey_title"", ""srv_hd.id"", ""srv_hd.survey_id"", ""srv_hd.financialyear_from"", ""srv_hd.half_year"", ""srv_hd.survey_type_id"", ""srv_hd.survey_resend_date"", ""srv_hd.survey_sent_date"", ""srv_hd.survey_response_received_date"", ""srv_hd.is_survey_offline"", ""srv_hd.survey_status_id"", ""srv_hd.updated_ts"", ""srv_hd.project_id"", ""proj.sub_du_id"", ""proj.operational_dc"", ""proj.ip_id"", ""proj.client_id"", ""proj.project_id"", ""proj.project_name"", ""proj.current_status"", ""d.id_seq"", ""d.du_name"", ""f.freezingflag""],
""Inner Unique"": true,
""Hash Cond"": ""(((proj.delivery_unit_id)::text = d.id) AND (proj.deliveryunit_type_id = d.du_type_id))"",
""Shared Hit Blocks"": 216952,
""Shared Read Blocks"": 0,
""Shared Dirtied Blocks"": 0,
""Shared Written Blocks"": 0,
""Local Hit Blocks"": 0,
""Local Read Blocks"": 0,
""Local Dirtied Blocks"": 0,
""Local Written Blocks"": 0,
""Temp Read Blocks"": 0,
""Temp Written Blocks"": 0,
""WAL Records"": 0,
""WAL FPI"": 0,
""WAL Bytes"": 0,
""Workers"": [
{
""Worker Number"": 0,
""Actual Startup Time"": 9.541,
""Actual Total Time"": 140.265,
""Actual Rows"": 8646,
""Actual Loops"": 1,
""Shared Hit Blocks"": 171565,
""Shared Read Blocks"": 0,
""Shared Dirtied Blocks"": 0,
""Shared Written Blocks"": 0,
""Local Hit Blocks"": 0,
""Local Read Blocks"": 0,
""Local Dirtied Blocks"": 0,
""Local Written Blocks"": 0,
""Temp Read Blocks"": 0,
""Temp Written Blocks"": 0,
""WAL Records"": 0,
""WAL FPI"": 0,
""WAL Bytes"": 0
},
{
""Worker Number"": 1,
""Actual Startup Time"": 9.831,
""Actual Total Time"": 48.737,
""Actual Rows"": 1180,
""Actual Loops"": 1,
""Shared Hit Blocks"": 26321,
""Shared Read Blocks"": 0,
""Shared Dirtied Blocks"": 0,
""Shared Written Blocks"": 0,
""Local Hit Blocks"": 0,
""Local Read Blocks"": 0,
""Local Dirtied Blocks"": 0,
""Local Written Blocks"": 0,
""Temp Read Blocks"": 0,
""Temp Written Blocks"": 0,
""WAL Records"": 0,
""WAL FPI"": 0,
""WAL Bytes"": 0
},
{
""Worker Number"": 2,
""Actual Startup Time"": 10.504,
""Actual Total Time"": 35.944,
""Actual Rows"": 709,
""Actual Loops"": 1,
""Shared Hit Blocks"": 16277,
""Shared Read Blocks"": 0,
""Shared Dirtied Blocks"": 0,
""Shared Written Blocks"": 0,
""Local Hit Blocks"": 0,
""Local Read Blocks"": 0,
""Local Dirtied Blocks"": 0,
""Local Written Blocks"": 0,
""Temp Read Blocks"": 0,
""Temp Written Blocks"": 0,
""WAL Records"": 0,
""WAL FPI"": 0,
""WAL Bytes"": 0
}
],
""Plans"": [
{
""Node Type"": ""Nested Loop"",
""Parent Relationship"": ""Outer"",
""Parallel Aware"": false,
""Async Capable"": false,
""Join Type"": ""Left"",
""Startup Cost"": 0.71,
""Total Cost"": 18045.64,
""Plan Rows"": 470,
""Plan Width"": 141,
""Actual Startup Time"": 7.151,
""Actual Total Time"": 60.322,
""Actual Rows"": 2651,
""Actual Loops"": 4,
""Output"": [""srv_hd.survey_title"", ""srv_hd.id"", ""srv_hd.survey_id"", ""srv_hd.financialyear_from"", ""srv_hd.half_year"", ""srv_hd.survey_type_id"", ""srv_hd.survey_resend_date"", ""srv_hd.survey_sent_date"", ""srv_hd.survey_response_received_date"", ""srv_hd.is_survey_offline"", ""srv_hd.survey_status_id"", ""srv_hd.updated_ts"", ""srv_hd.project_id"", ""proj.sub_du_id"", ""proj.operational_dc"", ""proj.ip_id"", ""proj.client_id"", ""proj.project_id"", ""proj.project_name"", ""proj.current_status"", ""proj.delivery_unit_id"", ""proj.deliveryunit_type_id"", ""f.freezingflag""],
""Inner Unique"": false,
""Join Filter"": ""((f.financialyearfrom = srv_hd.financialyear_from) AND ((f.yearhalf)::text = (srv_hd.half_year)::text))"",
""Rows Removed by Join Filter"": 33457,
""Shared Hit Blocks"": 216677,
""Shared Read Blocks"": 0,
""Shared Dirtied Blocks"": 0,
""Shared Written Blocks"": 0,
""Local Hit Blocks"": 0,
""Local Read Blocks"": 0,
""Local Dirtied Blocks"": 0,
""Local Written Blocks"": 0,
""Temp Read Blocks"": 0,
""Temp Written Blocks"": 0,
""WAL Records"": 0,
""WAL FPI"": 0,
""WAL Bytes"": 0,
""Workers"": [
{
""Worker Number"": 0,
""Actual Startup Time"": 9.022,
""Actual Total Time"": 136.330,
""Actual Rows"": 8663,
""Actual Loops"": 1,
""Shared Hit Blocks"": 171484,
""Shared Read Blocks"": 0,
""Shared Dirtied Blocks"": 0,
""Shared Written Blocks"": 0,
""Local Hit Blocks"": 0,
""Local Read Blocks"": 0,
""Local Dirtied Blocks"": 0,
""Local Written Blocks"": 0,
""Temp Read Blocks"": 0,
""Temp Written Blocks"": 0,
""WAL Records"": 0,
""WAL FPI"": 0,
""WAL Bytes"": 0
},
{
""Worker Number"": 1,
""Actual Startup Time"": 9.337,
""Actual Total Time"": 47.714,
""Actual Rows"": 1181,
""Actual Loops"": 1,
""Shared Hit Blocks"": 26240,
""Shared Read Blocks"": 0,
""Shared Dirtied Blocks"": 0,
""Shared Written Blocks"": 0,
""Local Hit Blocks"": 0,
""Local Read Blocks"": 0,
""Local Dirtied Blocks"": 0,
""Local Written Blocks"": 0,
""Temp Read Blocks"": 0,
""Temp Written Blocks"": 0,
""WAL Records"": 0,
""WAL FPI"": 0,
""WAL Bytes"": 0
},
{
""Worker Number"": 2,
""Actual Startup Time"": 10.017,
""Actual Total Time"": 35.127,
""Actual Rows"": 710,
""Actual Loops"": 1,
""Shared Hit Blocks"": 16196,
""Shared Read Blocks"": 0,
""Shared Dirtied Blocks"": 0,
""Shared Written Blocks"": 0,
""Local Hit Blocks"": 0,
""Local Read Blocks"": 0,
""Local Dirtied Blocks"": 0,
""Local Written Blocks"": 0,
""Temp Read Blocks"": 0,
""Temp Written Blocks"": 0,
""WAL Records"": 0,
""WAL FPI"": 0,
""WAL Bytes"": 0
}
],
""Plans"": [
{
""Node Type"": ""Nested Loop"",
""Parent Relationship"": ""Outer"",
""Parallel Aware"": false,
""Async Capable"": false,
""Join Type"": ""Inner"",
""Startup Cost"": 0.42,
""Total Cost"": 17878.52,
""Plan Rows"": 470,
""Plan Width"": 139,
""Actual Startup Time"": 7.099,
""Actual Total Time"": 40.701,
""Actual Rows"": 2651,
""Actual Loops"": 4,
""Output"": [""srv_hd.survey_title"", ""srv_hd.id"", ""srv_hd.survey_id"", ""srv_hd.financialyear_from"", ""srv_hd.half_year"", ""srv_hd.survey_type_id"", ""srv_hd.survey_resend_date"", ""srv_hd.survey_sent_date"", ""srv_hd.survey_response_received_date"", ""srv_hd.is_survey_offline"", ""srv_hd.survey_status_id"", ""srv_hd.updated_ts"", ""srv_hd.project_id"", ""proj.sub_du_id"", ""proj.operational_dc"", ""proj.ip_id"", ""proj.client_id"", ""proj.project_id"", ""proj.project_name"", ""proj.current_status"", ""proj.delivery_unit_id"", ""proj.deliveryunit_type_id""],
""Inner Unique"": true,
""Shared Hit Blocks"": 55259,
""Shared Read Blocks"": 0,
""Shared Dirtied Blocks"": 0,
""Shared Written Blocks"": 0,
""Local Hit Blocks"": 0,
""Local Read Blocks"": 0,
""Local Dirtied Blocks"": 0,
""Local Written Blocks"": 0,
""Temp Read Blocks"": 0,
""Temp Written Blocks"": 0,
""WAL Records"": 0,
""WAL FPI"": 0,
""WAL Bytes"": 0,
""Workers"": [
{
""Worker Number"": 0,
""Actual Startup Time"": 8.984,
""Actual Total Time"": 72.919,
""Actual Rows"": 8663,
""Actual Loops"": 1,
""Shared Hit Blocks"": 39309,
""Shared Read Blocks"": 0,
""Shared Dirtied Blocks"": 0,
""Shared Written Blocks"": 0,
""Local Hit Blocks"": 0,
""Local Read Blocks"": 0,
""Local Dirtied Blocks"": 0,
""Local Written Blocks"": 0,
""Temp Read Blocks"": 0,
""Temp Written Blocks"": 0,
""WAL Records"": 0,
""WAL FPI"": 0,
""WAL Bytes"": 0
},
{
""Worker Number"": 1,
""Actual Startup Time"": 9.248,
""Actual Total Time"": 38.762,
""Actual Rows"": 1181,
""Actual Loops"": 1,
""Shared Hit Blocks"": 8537,
""Shared Read Blocks"": 0,
""Shared Dirtied Blocks"": 0,
""Shared Written Blocks"": 0,
""Local Hit Blocks"": 0,
""Local Read Blocks"": 0,
""Local Dirtied Blocks"": 0,
""Local Written Blocks"": 0,
""Temp Read Blocks"": 0,
""Temp Written Blocks"": 0,
""WAL Records"": 0,
""WAL FPI"": 0,
""WAL Bytes"": 0
},
{
""Worker Number"": 2,
""Actual Startup Time"": 9.974,
""Actual Total Time"": 29.491,
""Actual Rows"": 710,
""Actual Loops"": 1,
""Shared Hit Blocks"": 5313,
""Shared Read Blocks"": 0,
""Shared Dirtied Blocks"": 0,
""Shared Written Blocks"": 0,
""Local Hit Blocks"": 0,
""Local Read Blocks"": 0,
""Local Dirtied Blocks"": 0,
""Local Written Blocks"": 0,
""Temp Read Blocks"": 0,
""Temp Written Blocks"": 0,
""WAL Records"": 0,
""WAL FPI"": 0,
""WAL Bytes"": 0
}
],
""Plans"": [
{
""Node Type"": ""Seq Scan"",
""Parent Relationship"": ""Outer"",
""Parallel Aware"": true,
""Async Capable"": false,
""Relation Name"": ""survey_header"",
""Schema"": ""css"",
""Alias"": ""srv_hd"",
""Startup Cost"": 0.00,
""Total Cost"": 16797.39,
""Plan Rows"": 470,
""Plan Width"": 75,
""Actual Startup Time"": 7.070,
""Actual Total Time"": 28.334,
""Actual Rows"": 2651,
""Actual Loops"": 4,
""Output"": [""srv_hd.id"", ""srv_hd.survey_id"", ""srv_hd.project_id"", ""srv_hd.contact_person_id"", ""srv_hd.survey_title"", ""srv_hd.survey_category_id"", ""srv_hd.survey_type_id"", ""srv_hd.delete_flag"", ""srv_hd.created_by"", ""srv_hd.created_ts"", ""srv_hd.updated_by"", ""srv_hd.updated_ts"", ""srv_hd.survey_start_date"", ""srv_hd.survey_end_date"", ""srv_hd.survey_sent_date"", ""srv_hd.survey_sent_by"", ""srv_hd.survey_response_received_date"", ""srv_hd.survey_status_id"", ""srv_hd.financialyear_from"", ""srv_hd.half_year"", ""srv_hd.response_from_date"", ""srv_hd.response_to_date"", ""srv_hd.response_due_date"", ""srv_hd.channel"", ""srv_hd.configure_survey_status"", ""srv_hd.language"", ""srv_hd.theme_id"", ""srv_hd.question_count"", ""srv_hd.version_no"", ""srv_hd.version_no_additional"", ""srv_hd.is_migrated"", ""srv_hd.num_of_questions"", ""srv_hd.config_remarks"", ""srv_hd.is_survey_offline"", ""srv_hd.encrypted_id"", ""srv_hd.supress_remainder_emails"", ""srv_hd.offline_survey_donwload_count"", ""srv_hd.salutation"", ""srv_hd.template_id"", ""srv_hd.is_link_renewed"", ""srv_hd.ipms_survey_id"", ""srv_hd.mail_sent"", ""srv_hd.edit_signature"", ""srv_hd.rank_loyalty_flag"", ""srv_hd.is_satisfier_calculated"", ""srv_hd.satisfier_calculated_date"", ""srv_hd.submission_client_mail"", ""srv_hd.submission_stackholder_mail"", ""srv_hd.survey_resend_date"", ""srv_hd.css_to_survey_flag"", ""srv_hd.survey_to_css_flag"", ""srv_hd.survey_response_flag"", ""srv_hd.is_ofi_analysis_done""],
""Filter"": ""((srv_hd.survey_status_id >= 2000) AND (srv_hd.survey_status_id <= 11000) AND ((((((srv_hd.financialyear_from)::text || '-'::text) || ((srv_hd.financialyear_from + 1))::text) || ' '::text) || (srv_hd.half_year)::text) = '2024-2025 H1'::text))"",
""Rows Removed by Filter"": 73792,
""Shared Hit Blocks"": 12836,
""Shared Read Blocks"": 0,
""Shared Dirtied Blocks"": 0,
""Shared Written Blocks"": 0,
""Local Hit Blocks"": 0,
""Local Read Blocks"": 0,
""Local Dirtied Blocks"": 0,
""Local Written Blocks"": 0,
""Temp Read Blocks"": 0,
""Temp Written Blocks"": 0,
""WAL Records"": 0,
""WAL FPI"": 0,
""WAL Bytes"": 0,
""Workers"": [
{
""Worker Number"": 0,
""Actual Startup Time"": 8.950,
""Actual Total Time"": 36.290,
""Actual Rows"": 8663,
""Actual Loops"": 1,
""Shared Hit Blocks"": 4656,
""Shared Read Blocks"": 0,
""Shared Dirtied Blocks"": 0,
""Shared Written Blocks"": 0,
""Local Hit Blocks"": 0,
""Local Read Blocks"": 0,
""Local Dirtied Blocks"": 0,
""Local Written Blocks"": 0,
""Temp Read Blocks"": 0,
""Temp Written Blocks"": 0,
""WAL Records"": 0,
""WAL FPI"": 0,
""WAL Bytes"": 0
},
{
""Worker Number"": 1,
""Actual Startup Time"": 9.214,
""Actual Total Time"": 31.257,
""Actual Rows"": 1181,
""Actual Loops"": 1,
""Shared Hit Blocks"": 3812,
""Shared Read Blocks"": 0,
""Shared Dirtied Blocks"": 0,
""Shared Written Blocks"": 0,
""Local Hit Blocks"": 0,
""Local Read Blocks"": 0,
""Local Dirtied Blocks"": 0,
""Local Written Blocks"": 0,
""Temp Read Blocks"": 0,
""Temp Written Blocks"": 0,
""WAL Records"": 0,
""WAL FPI"": 0,
""WAL Bytes"": 0
},
{
""Worker Number"": 2,
""Actual Startup Time"": 9.940,
""Actual Total Time"": 24.468,
""Actual Rows"": 710,
""Actual Loops"": 1,
""Shared Hit Blocks"": 2472,
""Shared Read Blocks"": 0,
""Shared Dirtied Blocks"": 0,
""Shared Written Blocks"": 0,
""Local Hit Blocks"": 0,
""Local Read Blocks"": 0,
""Local Dirtied Blocks"": 0,
""Local Written Blocks"": 0,
""Temp Read Blocks"": 0,
""Temp Written Blocks"": 0,
""WAL Records"": 0,
""WAL FPI"": 0,
""WAL Bytes"": 0
}
]
},
{
""Node Type"": ""Index Scan"",
""Parent Relationship"": ""Inner"",
""Parallel Aware"": false,
""Async Capable"": false,
""Scan Direction"": ""Forward"",
""Index Name"": ""project_id_inx"",
""Relation Name"": ""projects"",
""Schema"": ""css"",
""Alias"": ""proj"",
""Startup Cost"": 0.42,
""Total Cost"": 2.30,
""Plan Rows"": 1,
""Plan Width"": 64,
""Actual Startup Time"": 0.004,
""Actual Total Time"": 0.004,
""Actual Rows"": 1,
""Actual Loops"": 10605,
""Output"": [""proj.id"", ""proj.project_id"", ""proj.ip_id"", ""proj.sp_id"", ""proj.geo_id"", ""proj.project_name"", ""proj.project_desc"", ""proj.planned_start_date"", ""proj.planned_end_date"", ""proj.actual_start_date"", ""proj.actual_end_date"", ""proj.type_id"", ""proj.serviced_branch_id"", ""proj.serviced_location_id"", ""proj.project_close_date"", ""proj.accounting_location_id"", ""proj.executing_dc_id"", ""proj.original_size"", ""proj.operational_dc"", ""proj.operational_branch"", ""proj.delivery_unit_id"", ""proj.current_status"", ""proj.created_at"", ""proj.closed_at"", ""proj.nature_id"", ""proj.client_id"", ""proj.deliveryunit_type_id"", ""proj.work_location_id"", ""proj.engagement_model"", ""proj.mca_type"", ""proj.risk_categorization"", ""proj.team_size"", ""proj.gl_emp_id"", ""proj.pl_emp_id"", ""proj.complexity"", ""proj.methodology"", ""proj.size_id"", ""proj.risk_type_id"", ""proj.engagement_model_id"", ""proj.classification_id"", ""proj.scope"", ""proj.out_scope"", ""proj.interface_system"", ""proj.hardware"", ""proj.software"", ""proj.is_migrated"", ""proj.billing_only_flag"", ""proj.pure_onsite_flag"", ""proj.staff_augmented_flag"", ""proj.updated_by"", ""proj.updated_ts"", ""proj.is_specialaudit_required"", ""proj.specialaudit_typeid"", ""proj.specialaudit_reference"", ""proj.specialaudit_details"", ""proj.is_first_time_data_done"", ""proj.parent_sp_id"", ""proj.project_original_name"", ""proj.is_name_changed"", ""proj.risk_frequency_value"", ""proj.issue_factor_value"", ""proj.risk_financial_currency_id"", ""proj.is_upload_applicable"", ""proj.projectglpl_dm_lstupddt"", ""proj.projectstatus_dm_lstupddt"", ""proj.projclient_dm_lstupddt"", ""proj.lanscape_updated_ts"", ""proj.last_update_date"", ""proj.parent_project_id"", ""proj.project_category_flag"", ""proj.billing_type_id"", ""proj.status_id"", ""proj.sub_du_id"", ""proj.sub_sp2code"", ""proj.agilepract_txt"", ""proj.service_domain_id"", ""proj.prime_updated_flag"", ""proj.prime_updated_ts"", ""proj.group_customer_id"", ""proj.group_customer_name"", ""proj.card_type_id"", ""proj.engagement_id"", ""proj.sub_project_type"", ""proj.subproject_updated_date"", ""proj.mcatype_updated_date"", ""proj.trans_flag"", ""proj.trans_type"", ""proj.transflag_updated_date"", ""proj.primary_focus_updated_date"", ""proj.attr_key"", ""proj.primary_focus""],
""Index Cond"": ""(proj.project_id = srv_hd.project_id)"",
""Rows Removed by Index Recheck"": 0,
""Shared Hit Blocks"": 42423,
""Shared Read Blocks"": 0,
""Shared Dirtied Blocks"": 0,
""Shared Written Blocks"": 0,
""Local Hit Blocks"": 0,
""Local Read Blocks"": 0,
""Local Dirtied Blocks"": 0,
""Local Written Blocks"": 0,
""Temp Read Blocks"": 0,
""Temp Written Blocks"": 0,
""WAL Records"": 0,
""WAL FPI"": 0,
""WAL Bytes"": 0,
""Workers"": [
{
""Worker Number"": 0,
""Actual Startup Time"": 0.003,
""Actual Total Time"": 0.003,
""Actual Rows"": 1,
""Actual Loops"": 8663,
""Shared Hit Blocks"": 34653,
""Shared Read Blocks"": 0,
""Shared Dirtied Blocks"": 0,
""Shared Written Blocks"": 0,
""Local Hit Blocks"": 0,
""Local Read Blocks"": 0,
""Local Dirtied Blocks"": 0,
""Local Written Blocks"": 0,
""Temp Read Blocks"": 0,
""Temp Written Blocks"": 0,
""WAL Records"": 0,
""WAL FPI"": 0,
""WAL Bytes"": 0
},
{
""Worker Number"": 1,
""Actual Startup Time"": 0.005,
""Actual Total Time"": 0.005,
""Actual Rows"": 1,
""Actual Loops"": 1181,
""Shared Hit Blocks"": 4725,
""Shared Read Blocks"": 0,
""Shared Dirtied Blocks"": 0,
""Shared Written Blocks"": 0,
""Local Hit Blocks"": 0,
""Local Read Blocks"": 0,
""Local Dirtied Blocks"": 0,
""Local Written Blocks"": 0,
""Temp Read Blocks"": 0,
""Temp Written Blocks"": 0,
""WAL Records"": 0,
""WAL FPI"": 0,
""WAL Bytes"": 0
},
{
""Worker Number"": 2,
""Actual Startup Time"": 0.006,
""Actual Total Time"": 0.006,
""Actual Rows"": 1,
""Actual Loops"": 710,
""Shared Hit Blocks"": 2841,
""Shared Read Blocks"": 0,
""Shared Dirtied Blocks"": 0,
""Shared Written Blocks"": 0,
""Local Hit Blocks"": 0,
""Local Read Blocks"": 0,
""Local Dirtied Blocks"": 0,
""Local Written Blocks"": 0,
""Temp Read Blocks"": 0,
""Temp Written Blocks"": 0,
""WAL Records"": 0,
""WAL FPI"": 0,
""WAL Bytes"": 0
}
]
}
]
},
{
""Node Type"": ""Index Scan"",
""Parent Relationship"": ""Inner"",
""Parallel Aware"": false,
""Async Capable"": false,
""Scan Direction"": ""Forward"",
""Index Name"": ""pk_t_cssfreezinginfo"",
""Relation Name"": ""survey_freezing_info"",
""Schema"": ""css"",
""Alias"": ""f"",
""Startup Cost"": 0.29,
""Total Cost"": 0.33,
""Plan Rows"": 2,
""Plan Width"": 18,
""Actual Startup Time"": 0.003,
""Actual Total Time"": 0.006,
""Actual Rows"": 14,
""Actual Loops"": 10605,
""Output"": [""f.du_id"", ""f.du_type_id"", ""f.financialyearfrom"", ""f.yearhalf"", ""f.freezingdate"", ""f.csi_standard"", ""f.csi_du"", ""f.csi_non_tcs"", ""f.frozenby"", ""f.updated_dt"", ""f.updated_by"", ""f.freezingflag"", ""f.specialusertype"", ""f.du_tcs_format_index"", ""f.du_all_format_index"", ""f.org_all_format_all_index"", ""f.org_tcs_format_std_index"", ""f.is_migrated""],
""Index Cond"": ""(((f.du_id)::text = (proj.delivery_unit_id)::text) AND (f.du_type_id = proj.deliveryunit_type_id))"",
""Rows Removed by Index Recheck"": 0,
""Shared Hit Blocks"": 161418,
""Shared Read Blocks"": 0,
""Shared Dirtied Blocks"": 0,
""Shared Written Blocks"": 0,
""Local Hit Blocks"": 0,
""Local Read Blocks"": 0,
""Local Dirtied Blocks"": 0,
""Local Written Blocks"": 0,
""Temp Read Blocks"": 0,
""Temp Written Blocks"": 0,
""WAL Records"": 0,
""WAL FPI"": 0,
""WAL Bytes"": 0,
""Workers"": [
{
""Worker Number"": 0,
""Actual Startup Time"": 0.003,
""Actual Total Time"": 0.006,
""Actual Rows"": 14,
""Actual Loops"": 8663,
""Shared Hit Blocks"": 132175,
""Shared Read Blocks"": 0,
""Shared Dirtied Blocks"": 0,
""Shared Written Blocks"": 0,
""Local Hit Blocks"": 0,
""Local Read Blocks"": 0,
""Local Dirtied Blocks"": 0,
""Local Written Blocks"": 0,
""Temp Read Blocks"": 0,
""Temp Written Blocks"": 0,
""WAL Records"": 0,
""WAL FPI"": 0,
""WAL Bytes"": 0
},
{
""Worker Number"": 1,
""Actual Startup Time"": 0.003,
""Actual Total Time"": 0.006,
""Actual Rows"": 13,
""Actual Loops"": 1181,
""Shared Hit Blocks"": 17703,
""Shared Read Blocks"": 0,
""Shared Dirtied Blocks"": 0,
""Shared Written Blocks"": 0,
""Local Hit Blocks"": 0,
""Local Read Blocks"": 0,
""Local Dirtied Blocks"": 0,
""Local Written Blocks"": 0,
""Temp Read Blocks"": 0,
""Temp Written Blocks"": 0,
""WAL Records"": 0,
""WAL FPI"": 0,
""WAL Bytes"": 0
},
{
""Worker Number"": 2,
""Actual Startup Time"": 0.003,
""Actual Total Time"": 0.006,
""Actual Rows"": 14,
""Actual Loops"": 710,
""Shared Hit Blocks"": 10883,
""Shared Read Blocks"": 0,
""Shared Dirtied Blocks"": 0,
""Shared Written Blocks"": 0,
""Local Hit Blocks"": 0,
""Local Read Blocks"": 0,
""Local Dirtied Blocks"": 0,
""Local Written Blocks"": 0,
""Temp Read Blocks"": 0,
""Temp Written Blocks"": 0,
""WAL Records"": 0,
""WAL FPI"": 0,
""WAL Bytes"": 0
}
]
}
]
},
{
""Node Type"": ""Hash"",
""Parent Relationship"": ""Inner"",
""Parallel Aware"": false,
""Async Capable"": false,
""Startup Cost"": 44.81,
""Total Cost"": 44.81,
""Plan Rows"": 1281,
""Plan Width"": 36,
""Actual Startup Time"": 0.384,
""Actual Total Time"": 0.384,
""Actual Rows"": 1281,
""Actual Loops"": 4,
""Output"": [""d.id_seq"", ""d.du_name"", ""d.id"", ""d.du_type_id""],
""Hash Buckets"": 2048,
""Original Hash Buckets"": 2048,
""Hash Batches"": 1,
""Original Hash Batches"": 1,
""Peak Memory Usage"": 105,
""Shared Hit Blocks"": 128,
""Shared Read Blocks"": 0,
""Shared Dirtied Blocks"": 0,
""Shared Written Blocks"": 0,
""Local Hit Blocks"": 0,
""Local Read Blocks"": 0,
""Local Dirtied Blocks"": 0,
""Local Written Blocks"": 0,
""Temp Read Blocks"": 0,
""Temp Written Blocks"": 0,
""WAL Records"": 0,
""WAL FPI"": 0,
""WAL Bytes"": 0,
""Workers"": [
{
""Worker Number"": 0,
""Actual Startup Time"": 0.411,
""Actual Total Time"": 0.411,
""Actual Rows"": 1281,
""Actual Loops"": 1,
""Shared Hit Blocks"": 32,
""Shared Read Blocks"": 0,
""Shared Dirtied Blocks"": 0,
""Shared Written Blocks"": 0,
""Local Hit Blocks"": 0,
""Local Read Blocks"": 0,
""Local Dirtied Blocks"": 0,
""Local Written Blocks"": 0,
""Temp Read Blocks"": 0,
""Temp Written Blocks"": 0,
""WAL Records"": 0,
""WAL FPI"": 0,
""WAL Bytes"": 0
},
{
""Worker Number"": 1,
""Actual Startup Time"": 0.401,
""Actual Total Time"": 0.402,
""Actual Rows"": 1281,
""Actual Loops"": 1,
""Shared Hit Blocks"": 32,
""Shared Read Blocks"": 0,
""Shared Dirtied Blocks"": 0,
""Shared Written Blocks"": 0,
""Local Hit Blocks"": 0,
""Local Read Blocks"": 0,
""Local Dirtied Blocks"": 0,
""Local Written Blocks"": 0,
""Temp Read Blocks"": 0,
""Temp Written Blocks"": 0,
""WAL Records"": 0,
""WAL FPI"": 0,
""WAL Bytes"": 0
},
{
""Worker Number"": 2,
""Actual Startup Time"": 0.391,
""Actual Total Time"": 0.391,
""Actual Rows"": 1281,
""Actual Loops"": 1,
""Shared Hit Blocks"": 32,
""Shared Read Blocks"": 0,
""Shared Dirtied Blocks"": 0,
""Shared Written Blocks"": 0,
""Local Hit Blocks"": 0,
""Local Read Blocks"": 0,
""Local Dirtied Blocks"": 0,
""Local Written Blocks"": 0,
""Temp Read Blocks"": 0,
""Temp Written Blocks"": 0,
""WAL Records"": 0,
""WAL FPI"": 0,
""WAL Bytes"": 0
}
],
""Plans"": [
{
""Node Type"": ""Seq Scan"",
""Parent Relationship"": ""Outer"",
""Parallel Aware"": false,
""Async Capable"": false,
""Relation Name"": ""deliveryunits"",
""Schema"": ""css"",
""Alias"": ""d"",
""Startup Cost"": 0.00,
""Total Cost"": 44.81,
""Plan Rows"": 1281,
""Plan Width"": 36,
""Actual Startup Time"": 0.025,
""Actual Total Time"": 0.180,
""Actual Rows"": 1281,
""Actual Loops"": 4,
""Output"": [""d.id_seq"", ""d.du_name"", ""d.id"", ""d.du_type_id""],
""Shared Hit Blocks"": 128,
""Shared Read Blocks"": 0,
""Shared Dirtied Blocks"": 0,
""Shared Written Blocks"": 0,
""Local Hit Blocks"": 0,
""Local Read Blocks"": 0,
""Local Dirtied Blocks"": 0,
""Local Written Blocks"": 0,
""Temp Read Blocks"": 0,
""Temp Written Blocks"": 0,
""WAL Records"": 0,
""WAL FPI"": 0,
""WAL Bytes"": 0,
""Workers"": [
{
""Worker Number"": 0,
""Actual Startup Time"": 0.036,
""Actual Total Time"": 0.200,
""Actual Rows"": 1281,
""Actual Loops"": 1,
""Shared Hit Blocks"": 32,
""Shared Read Blocks"": 0,
""Shared Dirtied Blocks"": 0,
""Shared Written Blocks"": 0,
""Local Hit Blocks"": 0,
""Local Read Blocks"": 0,
""Local Dirtied Blocks"": 0,
""Local Written Blocks"": 0,
""Temp Read Blocks"": 0,
""Temp Written Blocks"": 0,
""WAL Records"": 0,
""WAL FPI"": 0,
""WAL Bytes"": 0
},
{
""Worker Number"": 1,
""Actual Startup Time"": 0.029,
""Actual Total Time"": 0.177,
""Actual Rows"": 1281,
""Actual Loops"": 1,
""Shared Hit Blocks"": 32,
""Shared Read Blocks"": 0,
""Shared Dirtied Blocks"": 0,
""Shared Written Blocks"": 0,
""Local Hit Blocks"": 0,
""Local Read Blocks"": 0,
""Local Dirtied Blocks"": 0,
""Local Written Blocks"": 0,
""Temp Read Blocks"": 0,
""Temp Written Blocks"": 0,
""WAL Records"": 0,
""WAL FPI"": 0,
""WAL Bytes"": 0
},
{
""Worker Number"": 2,
""Actual Startup Time"": 0.032,
""Actual Total Time"": 0.181,
""Actual Rows"": 1281,
""Actual Loops"": 1,
""Shared Hit Blocks"": 32,
""Shared Read Blocks"": 0,
""Shared Dirtied Blocks"": 0,
""Shared Written Blocks"": 0,
""Local Hit Blocks"": 0,
""Local Read Blocks"": 0,
""Local Dirtied Blocks"": 0,
""Local Written Blocks"": 0,
""Temp Read Blocks"": 0,
""Temp Written Blocks"": 0,
""WAL Records"": 0,
""WAL FPI"": 0,
""WAL Bytes"": 0
}
]
}
]
}
]
},
{
""Node Type"": ""Index Scan"",
""Parent Relationship"": ""Inner"",
""Parallel Aware"": false,
""Async Capable"": false,
""Scan Direction"": ""Forward"",
""Index Name"": ""rca_sources_source_id_index"",
""Relation Name"": ""rca_sources"",
""Schema"": ""css"",
""Alias"": ""rs"",
""Startup Cost"": 0.29,
""Total Cost"": 1.06,
""Plan Rows"": 1,
""Plan Width"": 8,
""Actual Startup Time"": 0.001,
""Actual Total Time"": 0.001,
""Actual Rows"": 1,
""Actual Loops"": 10586,
""Output"": [""rs.id"", ""rs.rca_id"", ""rs.source_id"", ""rs.source_type""],
""Index Cond"": ""(rs.source_id = srv_hd.survey_id)"",
""Rows Removed by Index Recheck"": 0,
""Shared Hit Blocks"": 27999,
""Shared Read Blocks"": 0,
""Shared Dirtied Blocks"": 0,
""Shared Written Blocks"": 0,
""Local Hit Blocks"": 0,
""Local Read Blocks"": 0,
""Local Dirtied Blocks"": 0,
""Local Written Blocks"": 0,
""Temp Read Blocks"": 0,
""Temp Written Blocks"": 0,
""WAL Records"": 0,
""WAL FPI"": 0,
""WAL Bytes"": 0,
""Workers"": [
{
""Worker Number"": 0,
""Actual Startup Time"": 0.001,
""Actual Total Time"": 0.001,
""Actual Rows"": 1,
""Actual Loops"": 8646,
""Shared Hit Blocks"": 23179,
""Shared Read Blocks"": 0,
""Shared Dirtied Blocks"": 0,
""Shared Written Blocks"": 0,
""Local Hit Blocks"": 0,
""Local Read Blocks"": 0,
""Local Dirtied Blocks"": 0,
""Local Written Blocks"": 0,
""Temp Read Blocks"": 0,
""Temp Written Blocks"": 0,
""WAL Records"": 0,
""WAL FPI"": 0,
""WAL Bytes"": 0
},
{
""Worker Number"": 1,
""Actual Startup Time"": 0.001,
""Actual Total Time"": 0.001,
""Actual Rows"": 0,
""Actual Loops"": 1180,
""Shared Hit Blocks"": 2924,
""Shared Read Blocks"": 0,
""Shared Dirtied Blocks"": 0,
""Shared Written Blocks"": 0,
""Local Hit Blocks"": 0,
""Local Read Blocks"": 0,
""Local Dirtied Blocks"": 0,
""Local Written Blocks"": 0,
""Temp Read Blocks"": 0,
""Temp Written Blocks"": 0,
""WAL Records"": 0,
""WAL FPI"": 0,
""WAL Bytes"": 0
},
{
""Worker Number"": 2,
""Actual Startup Time"": 0.001,
""Actual Total Time"": 0.001,
""Actual Rows"": 0,
""Actual Loops"": 709,
""Shared Hit Blocks"": 1761,
""Shared Read Blocks"": 0,
""Shared Dirtied Blocks"": 0,
""Shared Written Blocks"": 0,
""Local Hit Blocks"": 0,
""Local Read Blocks"": 0,
""Local Dirtied Blocks"": 0,
""Local Written Blocks"": 0,
""Temp Read Blocks"": 0,
""Temp Written Blocks"": 0,
""WAL Records"": 0,
""WAL FPI"": 0,
""WAL Bytes"": 0
}
]
}
]
},
{
""Node Type"": ""Index Scan"",
""Parent Relationship"": ""Inner"",
""Parallel Aware"": false,
""Async Capable"": false,
""Scan Direction"": ""Forward"",
""Index Name"": ""t_upp_proj_group_map_index"",
""Relation Name"": ""t_upp_proj_group_map"",
""Schema"": ""css"",
""Alias"": ""engmap"",
""Startup Cost"": 0.42,
""Total Cost"": 2.06,
""Plan Rows"": 1,
""Plan Width"": 14,
""Actual Startup Time"": 0.003,
""Actual Total Time"": 0.004,
""Actual Rows"": 1,
""Actual Loops"": 10648,
""Output"": [""engmap.at_projgrpid"", ""engmap.at_projectid"", ""engmap.at_parent_flag"", ""engmap.at_remarks"", ""engmap.at_startdate"", ""engmap.at_enddate"", ""engmap.at_createdon"", ""engmap.at_createdby"", ""engmap.at_modifiedon"", ""engmap.at_modifiedby"", ""engmap.at_text1"", ""engmap.at_text2"", ""engmap.at_text3"", ""engmap.at_number1"", ""engmap.at_number2"", ""engmap.at_number3"", ""engmap.etl_load_date"", ""engmap.at_date1"", ""engmap.at_date2"", ""engmap.at_date""],
""Index Cond"": ""(engmap.at_projectid = (srv_hd.project_id)::numeric)"",
""Rows Removed by Index Recheck"": 0,
""Shared Hit Blocks"": 42592,
""Shared Read Blocks"": 0,
""Shared Dirtied Blocks"": 0,
""Shared Written Blocks"": 0,
""Local Hit Blocks"": 0,
""Local Read Blocks"": 0,
""Local Dirtied Blocks"": 0,
""Local Written Blocks"": 0,
""Temp Read Blocks"": 0,
""Temp Written Blocks"": 0,
""WAL Records"": 0,
""WAL FPI"": 0,
""WAL Bytes"": 0,
""Workers"": [
{
""Worker Number"": 0,
""Actual Startup Time"": 0.003,
""Actual Total Time"": 0.003,
""Actual Rows"": 1,
""Actual Loops"": 8703,
""Shared Hit Blocks"": 34812,
""Shared Read Blocks"": 0,
""Shared Dirtied Blocks"": 0,
""Shared Written Blocks"": 0,
""Local Hit Blocks"": 0,
""Local Read Blocks"": 0,
""Local Dirtied Blocks"": 0,
""Local Written Blocks"": 0,
""Temp Read Blocks"": 0,
""Temp Written Blocks"": 0,
""WAL Records"": 0,
""WAL FPI"": 0,
""WAL Bytes"": 0
},
{
""Worker Number"": 1,
""Actual Startup Time"": 0.004,
""Actual Total Time"": 0.004,
""Actual Rows"": 1,
""Actual Loops"": 1183,
""Shared Hit Blocks"": 4731,
""Shared Read Blocks"": 0,
""Shared Dirtied Blocks"": 0,
""Shared Written Blocks"": 0,
""Local Hit Blocks"": 0,
""Local Read Blocks"": 0,
""Local Dirtied Blocks"": 0,
""Local Written Blocks"": 0,
""Temp Read Blocks"": 0,
""Temp Written Blocks"": 0,
""WAL Records"": 0,
""WAL FPI"": 0,
""WAL Bytes"": 0
},
{
""Worker Number"": 2,
""Actual Startup Time"": 0.005,
""Actual Total Time"": 0.005,
""Actual Rows"": 1,
""Actual Loops"": 711,
""Shared Hit Blocks"": 2845,
""Shared Read Blocks"": 0,
""Shared Dirtied Blocks"": 0,
""Shared Written Blocks"": 0,
""Local Hit Blocks"": 0,
""Local Read Blocks"": 0,
""Local Dirtied Blocks"": 0,
""Local Written Blocks"": 0,
""Temp Read Blocks"": 0,
""Temp Written Blocks"": 0,
""WAL Records"": 0,
""WAL FPI"": 0,
""WAL Bytes"": 0
}
]
}
]
},
{
""Node Type"": ""Index Scan"",
""Parent Relationship"": ""Inner"",
""Parallel Aware"": false,
""Async Capable"": false,
""Scan Direction"": ""Forward"",
""Index Name"": ""idx_project_group"",
""Relation Name"": ""t_upp_project_group"",
""Schema"": ""css"",
""Alias"": ""eng"",
""Startup Cost"": 0.42,
""Total Cost"": 0.50,
""Plan Rows"": 1,
""Plan Width"": 10,
""Actual Startup Time"": 0.003,
""Actual Total Time"": 0.003,
""Actual Rows"": 1,
""Actual Loops"": 10648,
""Output"": [""eng.at_projgrpid"", ""eng.at_projgrp_name"", ""eng.at_pr_projectid"", ""eng.at_status"", ""eng.at_closedate"", ""eng.at_createdon"", ""eng.at_createdby"", ""eng.at_modifiedon"", ""eng.at_modifiedby"", ""eng.at_text1"", ""eng.at_text2"", ""eng.at_text3"", ""eng.at_number1"", ""eng.at_number2"", ""eng.at_number3"", ""eng.at_date1"", ""eng.at_date2"", ""eng.at_date3"", ""eng.at_start_date"", ""eng.at_end_date"", ""eng.at_classification"", ""eng.at_ipid"", ""eng.at_du_id"", ""eng.at_sub_du_id"", ""eng.at_staff_aug_flag"", ""eng.at_group_customer_id"", ""eng.at_group_client"", ""eng.at_owner"", ""eng.at_confirm_date"", ""eng.at_digital_tagging"", ""eng.at_critical_flag"", ""eng.at_nature"", ""eng.at_transition_flag"", ""eng.at_trans_end_date"", ""eng.at_complexity"", ""eng.at_gnt_flag"", ""eng.at_eng_description"", ""eng.at_eng_dp"", ""eng.at_swon_flag"", ""eng.at_new_logo_flag"", ""eng.at_other_nature_desc"", ""eng.daf_status"", ""eng.at_eng_dp_name"", ""eng.eng_primary_daf_id"", ""eng.eng_primary_daf_name"", ""eng.eng_sec_daf_id"", ""eng.eng_sec_daf_name"", ""eng.is_migrated"", ""eng.eng_color"", ""eng.esu_status"", ""eng.actual_psu_date"", ""eng.planned_psu_date"", ""eng.at_planned_sign_off_date"", ""eng.enggdc"", ""eng.eng_contract_flag"", ""eng.open_issue_count"", ""eng.red_issue_count"", ""eng.impacted_metrics"", ""eng.applicable_metrics"", ""eng.engagement_status"", ""eng.primary_focus"", ""eng.hcr_rapid_review_reason"", ""eng.additional_remarks""],
""Index Cond"": ""(eng.at_projgrpid = engmap.at_projgrpid)"",
""Rows Removed by Index Recheck"": 0,
""Shared Hit Blocks"": 42583,
""Shared Read Blocks"": 0,
""Shared Dirtied Blocks"": 0,
""Shared Written Blocks"": 0,
""Local Hit Blocks"": 0,
""Local Read Blocks"": 0,
""Local Dirtied Blocks"": 0,
""Local Written Blocks"": 0,
""Temp Read Blocks"": 0,
""Temp Written Blocks"": 0,
""WAL Records"": 0,
""WAL FPI"": 0,
""WAL Bytes"": 0,
""Workers"": [
{
""Worker Number"": 0,
""Actual Startup Time"": 0.003,
""Actual Total Time"": 0.003,
""Actual Rows"": 1,
""Actual Loops"": 8703,
""Shared Hit Blocks"": 34809,
""Shared Read Blocks"": 0,
""Shared Dirtied Blocks"": 0,
""Shared Written Blocks"": 0,
""Local Hit Blocks"": 0,
""Local Read Blocks"": 0,
""Local Dirtied Blocks"": 0,
""Local Written Blocks"": 0,
""Temp Read Blocks"": 0,
""Temp Written Blocks"": 0,
""WAL Records"": 0,
""WAL FPI"": 0,
""WAL Bytes"": 0
},
{
""Worker Number"": 1,
""Actual Startup Time"": 0.004,
""Actual Total Time"": 0.004,
""Actual Rows"": 1,
""Actual Loops"": 1183,
""Shared Hit Blocks"": 4725,
""Shared Read Blocks"": 0,
""Shared Dirtied Blocks"": 0,
""Shared Written Blocks"": 0,
""Local Hit Blocks"": 0,
""Local Read Blocks"": 0,
""Local Dirtied Blocks"": 0,
""Local Written Blocks"": 0,
""Temp Read Blocks"": 0,
""Temp Written Blocks"": 0,
""WAL Records"": 0,
""WAL FPI"": 0,
""WAL Bytes"": 0
},
{
""Worker Number"": 2,
""Actual Startup Time"": 0.004,
""Actual Total Time"": 0.004,
""Actual Rows"": 1,
""Actual Loops"": 711,
""Shared Hit Blocks"": 2845,
""Shared Read Blocks"": 0,
""Shared Dirtied Blocks"": 0,
""Shared Written Blocks"": 0,
""Local Hit Blocks"": 0,
""Local Read Blocks"": 0,
""Local Dirtied Blocks"": 0,
""Local Written Blocks"": 0,
""Temp Read Blocks"": 0,
""Temp Written Blocks"": 0,
""WAL Records"": 0,
""WAL FPI"": 0,
""WAL Bytes"": 0
}
]
}
]
},
{
""Node Type"": ""Index Scan"",
""Parent Relationship"": ""Inner"",
""Parallel Aware"": false,
""Async Capable"": false,
""Scan Direction"": ""Forward"",
""Index Name"": ""rcas_pkey"",
""Relation Name"": ""rcas"",
""Schema"": ""css"",
""Alias"": ""rcs"",
""Startup Cost"": 0.29,
""Total Cost"": 0.34,
""Plan Rows"": 1,
""Plan Width"": 8,
""Actual Startup Time"": 0.001,
""Actual Total Time"": 0.001,
""Actual Rows"": 1,
""Actual Loops"": 10648,
""Output"": [""rcs.status_id"", ""rcs.id""],
""Index Cond"": ""(rcs.id = rs.rca_id)"",
""Rows Removed by Index Recheck"": 0,
""Shared Hit Blocks"": 20637,
""Shared Read Blocks"": 0,
""Shared Dirtied Blocks"": 0,
""Shared Written Blocks"": 0,
""Local Hit Blocks"": 0,
""Local Read Blocks"": 0,
""Local Dirtied Blocks"": 0,
""Local Written Blocks"": 0,
""Temp Read Blocks"": 0,
""Temp Written Blocks"": 0,
""WAL Records"": 0,
""WAL FPI"": 0,
""WAL Bytes"": 0,
""Workers"": [
{
""Worker Number"": 0,
""Actual Startup Time"": 0.001,
""Actual Total Time"": 0.001,
""Actual Rows"": 1,
""Actual Loops"": 8703,
""Shared Hit Blocks"": 17806,
""Shared Read Blocks"": 0,
""Shared Dirtied Blocks"": 0,
""Shared Written Blocks"": 0,
""Local Hit Blocks"": 0,
""Local Read Blocks"": 0,
""Local Dirtied Blocks"": 0,
""Local Written Blocks"": 0,
""Temp Read Blocks"": 0,
""Temp Written Blocks"": 0,
""WAL Records"": 0,
""WAL FPI"": 0,
""WAL Bytes"": 0
},
{
""Worker Number"": 1,
""Actual Startup Time"": 0.001,
""Actual Total Time"": 0.001,
""Actual Rows"": 0,
""Actual Loops"": 1183,
""Shared Hit Blocks"": 1699,
""Shared Read Blocks"": 0,
""Shared Dirtied Blocks"": 0,
""Shared Written Blocks"": 0,
""Local Hit Blocks"": 0,
""Local Read Blocks"": 0,
""Local Dirtied Blocks"": 0,
""Local Written Blocks"": 0,
""Temp Read Blocks"": 0,
""Temp Written Blocks"": 0,
""WAL Records"": 0,
""WAL FPI"": 0,
""WAL Bytes"": 0
},
{
""Worker Number"": 2,
""Actual Startup Time"": 0.001,
""Actual Total Time"": 0.001,
""Actual Rows"": 0,
""Actual Loops"": 711,
""Shared Hit Blocks"": 1033,
""Shared Read Blocks"": 0,
""Shared Dirtied Blocks"": 0,
""Shared Written Blocks"": 0,
""Local Hit Blocks"": 0,
""Local Read Blocks"": 0,
""Local Dirtied Blocks"": 0,
""Local Written Blocks"": 0,
""Temp Read Blocks"": 0,
""Temp Written Blocks"": 0,
""WAL Records"": 0,
""WAL FPI"": 0,
""WAL Bytes"": 0
}
]
}
]
},
{
""Node Type"": ""Index Scan"",
""Parent Relationship"": ""Inner"",
""Parallel Aware"": false,
""Async Capable"": false,
""Scan Direction"": ""Forward"",
""Index Name"": ""survey_css_header_survey_id_index"",
""Relation Name"": ""survey_css_header"",
""Schema"": ""css"",
""Alias"": ""srv_css_hd"",
""Startup Cost"": 0.42,
""Total Cost"": 2.10,
""Plan Rows"": 1,
""Plan Width"": 45,
""Actual Startup Time"": 0.001,
""Actual Total Time"": 0.001,
""Actual Rows"": 1,
""Actual Loops"": 10648,
""Output"": [""srv_css_hd.survey_id"", ""srv_css_hd.project_id"", ""srv_css_hd.contact_person_id"", ""srv_css_hd.tcsform"", ""srv_css_hd.latest_csat_flag"", ""srv_css_hd.tcsindex"", ""srv_css_hd.preferred_proj_name"", ""srv_css_hd.contact_person_id_src"", ""srv_css_hd.ntcs_contact_person_name_src"", ""srv_css_hd.is_migrated"", ""srv_css_hd.client_format_file"", ""srv_css_hd.language"", ""srv_css_hd.modified_on"", ""srv_css_hd.tcs_satisfier_indicator"", ""srv_css_hd.sent_count"", ""srv_css_hd.ofi_remarks"", ""srv_css_hd.project_type_id"", ""srv_css_hd.project_engagement_model_id"", ""srv_css_hd.project_methodology_id"", ""srv_css_hd.parent_sp_id"", ""srv_css_hd.sub_sp_id"", ""srv_css_hd.account_id"", ""srv_css_hd.staff_aug"", ""srv_css_hd.child_du_id"", ""srv_css_hd.reason_for_dissatisfier"", ""srv_css_hd.calculated_csi"", ""srv_css_hd.is_satisfier_calculated"", ""srv_css_hd.css_to_survey_flag"", ""srv_css_hd.pdf_path"", ""srv_css_hd.customer_name"", ""srv_css_hd.renew_link_requested"", ""srv_css_hd.survey_to_css_flag"", ""srv_css_hd.ofi_satisfier_indicator"", ""srv_css_hd.top_three_strengths"", ""srv_css_hd.ces_score""],
""Index Cond"": ""(srv_css_hd.survey_id = srv_hd.survey_id)"",
""Rows Removed by Index Recheck"": 0,
""Filter"": ""(srv_hd.project_id = srv_css_hd.project_id)"",
""Rows Removed by Filter"": 0,
""Shared Hit Blocks"": 42595,
""Shared Read Blocks"": 0,
""Shared Dirtied Blocks"": 0,
""Shared Written Blocks"": 0,
""Local Hit Blocks"": 0,
""Local Read Blocks"": 0,
""Local Dirtied Blocks"": 0,
""Local Written Blocks"": 0,
""Temp Read Blocks"": 0,
""Temp Written Blocks"": 0,
""WAL Records"": 0,
""WAL FPI"": 0,
""WAL Bytes"": 0,
""Workers"": [
{
""Worker Number"": 0,
""Actual Startup Time"": 0.001,
""Actual Total Time"": 0.001,
""Actual Rows"": 1,
""Actual Loops"": 8703,
""Shared Hit Blocks"": 34813,
""Shared Read Blocks"": 0,
""Shared Dirtied Blocks"": 0,
""Shared Written Blocks"": 0,
""Local Hit Blocks"": 0,
""Local Read Blocks"": 0,
""Local Dirtied Blocks"": 0,
""Local Written Blocks"": 0,
""Temp Read Blocks"": 0,
""Temp Written Blocks"": 0,
""WAL Records"": 0,
""WAL FPI"": 0,
""WAL Bytes"": 0
},
{
""Worker Number"": 1,
""Actual Startup Time"": 0.002,
""Actual Total Time"": 0.002,
""Actual Rows"": 1,
""Actual Loops"": 1183,
""Shared Hit Blocks"": 4733,
""Shared Read Blocks"": 0,
""Shared Dirtied Blocks"": 0,
""Shared Written Blocks"": 0,
""Local Hit Blocks"": 0,
""Local Read Blocks"": 0,
""Local Dirtied Blocks"": 0,
""Local Written Blocks"": 0,
""Temp Read Blocks"": 0,
""Temp Written Blocks"": 0,
""WAL Records"": 0,
""WAL FPI"": 0,
""WAL Bytes"": 0
},
{
""Worker Number"": 2,
""Actual Startup Time"": 0.002,
""Actual Total Time"": 0.002,
""Actual Rows"": 1,
""Actual Loops"": 711,
""Shared Hit Blocks"": 2845,
""Shared Read Blocks"": 0,
""Shared Dirtied Blocks"": 0,
""Shared Written Blocks"": 0,
""Local Hit Blocks"": 0,
""Local Read Blocks"": 0,
""Local Dirtied Blocks"": 0,
""Local Written Blocks"": 0,
""Temp Read Blocks"": 0,
""Temp Written Blocks"": 0,
""WAL Records"": 0,
""WAL FPI"": 0,
""WAL Bytes"": 0
}
]
}
]
}
]
},
{
""Node Type"": ""Index Scan"",
""Parent Relationship"": ""Inner"",
""Parallel Aware"": false,
""Async Capable"": false,
""Scan Direction"": ""Forward"",
""Index Name"": ""css_applicable_projects_pkey"",
""Relation Name"": ""css_applicable_projects"",
""Schema"": ""css"",
""Alias"": ""cap"",
""Startup Cost"": 0.42,
""Total Cost"": 0.46,
""Plan Rows"": 1,
""Plan Width"": 6,
""Actual Startup Time"": 0.002,
""Actual Total Time"": 0.002,
""Actual Rows"": 1,
""Actual Loops"": 10648,
""Output"": [""cap.project_id"", ""cap.css_applicability_flag"", ""cap.css_applicability_rsn_id"", ""cap.remarks"", ""cap.tcs_format_flag"", ""cap.branch_code"", ""cap.updated_by"", ""cap.updated_ts"", ""cap.is_migrated"", ""cap.src_updated_ts"", ""cap.other_reason"", ""cap.tag_opening_date""],
""Index Cond"": ""(cap.project_id = proj.project_id)"",
""Rows Removed by Index Recheck"": 0,
""Shared Hit Blocks"": 42592,
""Shared Read Blocks"": 0,
""Shared Dirtied Blocks"": 0,
""Shared Written Blocks"": 0,
""Local Hit Blocks"": 0,
""Local Read Blocks"": 0,
""Local Dirtied Blocks"": 0,
""Local Written Blocks"": 0,
""Temp Read Blocks"": 0,
""Temp Written Blocks"": 0,
""WAL Records"": 0,
""WAL FPI"": 0,
""WAL Bytes"": 0
}
]
},
{
""Node Type"": ""Index Scan"",
""Parent Relationship"": ""Inner"",
""Parallel Aware"": false,
""Async Capable"": false,
""Scan Direction"": ""Forward"",
""Index Name"": ""client_members_new_pkey"",
""Relation Name"": ""client_members_new"",
""Schema"": ""css"",
""Alias"": ""clmem"",
""Startup Cost"": 0.42,
""Total Cost"": 0.47,
""Plan Rows"": 1,
""Plan Width"": 22,
""Actual Startup Time"": 0.002,
""Actual Total Time"": 0.002,
""Actual Rows"": 1,
""Actual Loops"": 10648,
""Output"": [""clmem.id"", ""clmem.title"", ""clmem.first_name"", ""clmem.middle_name"", ""clmem.last_name"", ""clmem.about_me"", ""clmem.designation"", ""clmem.pref_mode_add"", ""clmem.mobile_number"", ""clmem.work_phone_number"", ""clmem.tcs_start_date"", ""clmem.tcs_end_date"", ""clmem.css_eligible"", ""clmem.email_address"", ""clmem.location_id"", ""clmem.delete_flag"", ""clmem.upload_image_id"", ""clmem.profile_completeness"", ""clmem.associations"", ""clmem.created_by"", ""clmem.created_ts"", ""clmem.updated_by"", ""clmem.updated_ts"", ""clmem.client_id"", ""clmem.contact_person_id"", ""clmem.is_migrated"", ""clmem.customer_number"", ""clmem.account_id"", ""clmem.profile_views_count"", ""clmem.source_type"", ""clmem.is_key_member"", ""clmem.followers_count"", ""clmem.attachment_id"", ""clmem.is_updated"", ""clmem.src_updated_ts"", ""clmem.photo_path"", ""clmem.tagged_userid""],
""Index Cond"": ""(clmem.id = srv_css_hd.contact_person_id)"",
""Rows Removed by Index Recheck"": 0,
""Shared Hit Blocks"": 42592,
""Shared Read Blocks"": 0,
""Shared Dirtied Blocks"": 0,
""Shared Written Blocks"": 0,
""Local Hit Blocks"": 0,
""Local Read Blocks"": 0,
""Local Dirtied Blocks"": 0,
""Local Written Blocks"": 0,
""Temp Read Blocks"": 0,
""Temp Written Blocks"": 0,
""WAL Records"": 0,
""WAL FPI"": 0,
""WAL Bytes"": 0
},
{
""Node Type"": ""Index Scan"",
""Parent Relationship"": ""SubPlan"",
""Subplan Name"": ""SubPlan 1"",
""Parallel Aware"": false,
""Async Capable"": false,
""Scan Direction"": ""Forward"",
""Index Name"": ""deliveryunits_inx"",
""Relation Name"": ""deliveryunits"",
""Schema"": ""css"",
""Alias"": ""dl"",
""Startup Cost"": 0.28,
""Total Cost"": 2.50,
""Plan Rows"": 1,
""Plan Width"": 23,
""Actual Startup Time"": 0.002,
""Actual Total Time"": 0.002,
""Actual Rows"": 1,
""Actual Loops"": 10648,
""Output"": [""dl.du_name""],
""Index Cond"": ""(dl.id = (proj.sub_du_id)::text)"",
""Rows Removed by Index Recheck"": 0,
""Shared Hit Blocks"": 31944,
""Shared Read Blocks"": 0,
""Shared Dirtied Blocks"": 0,
""Shared Written Blocks"": 0,
""Local Hit Blocks"": 0,
""Local Read Blocks"": 0,
""Local Dirtied Blocks"": 0,
""Local Written Blocks"": 0,
""Temp Read Blocks"": 0,
""Temp Written Blocks"": 0,
""WAL Records"": 0,
""WAL FPI"": 0,
""WAL Bytes"": 0
},
{
""Node Type"": ""Seq Scan"",
""Parent Relationship"": ""SubPlan"",
""Subplan Name"": ""SubPlan 2"",
""Parallel Aware"": false,
""Async Capable"": false,
""Relation Name"": ""gdcmst"",
""Schema"": ""css"",
""Alias"": ""gd"",
""Startup Cost"": 0.00,
""Total Cost"": 1.21,
""Plan Rows"": 1,
""Plan Width"": 14,
""Actual Startup Time"": 0.001,
""Actual Total Time"": 0.001,
""Actual Rows"": 0,
""Actual Loops"": 10648,
""Output"": [""gd.gdc_name""],
""Filter"": ""((gd.gdc_code)::text = (proj.operational_dc)::text)"",
""Rows Removed by Filter"": 17,
""Shared Hit Blocks"": 10648,
""Shared Read Blocks"": 0,
""Shared Dirtied Blocks"": 0,
""Shared Written Blocks"": 0,
""Local Hit Blocks"": 0,
""Local Read Blocks"": 0,
""Local Dirtied Blocks"": 0,
""Local Written Blocks"": 0,
""Temp Read Blocks"": 0,
""Temp Written Blocks"": 0,
""WAL Records"": 0,
""WAL FPI"": 0,
""WAL Bytes"": 0
},
{
""Node Type"": ""Index Scan"",
""Parent Relationship"": ""SubPlan"",
""Subplan Name"": ""SubPlan 3"",
""Parallel Aware"": false,
""Async Capable"": false,
""Scan Direction"": ""Forward"",
""Index Name"": ""ip_master_pkey"",
""Relation Name"": ""ip_master"",
""Schema"": ""css"",
""Alias"": ""ip"",
""Startup Cost"": 0.28,
""Total Cost"": 2.50,
""Plan Rows"": 1,
""Plan Width"": 22,
""Actual Startup Time"": 0.001,
""Actual Total Time"": 0.001,
""Actual Rows"": 1,
""Actual Loops"": 10648,
""Output"": [""ip.parent_description""],
""Index Cond"": ""(ip.id = proj.ip_id)"",
""Rows Removed by Index Recheck"": 0,
""Shared Hit Blocks"": 31944,
""Shared Read Blocks"": 0,
""Shared Dirtied Blocks"": 0,
""Shared Written Blocks"": 0,
""Local Hit Blocks"": 0,
""Local Read Blocks"": 0,
""Local Dirtied Blocks"": 0,
""Local Written Blocks"": 0,
""Temp Read Blocks"": 0,
""Temp Written Blocks"": 0,
""WAL Records"": 0,
""WAL FPI"": 0,
""WAL Bytes"": 0
},
{
""Node Type"": ""Index Scan"",
""Parent Relationship"": ""SubPlan"",
""Subplan Name"": ""SubPlan 4"",
""Parallel Aware"": false,
""Async Capable"": false,
""Scan Direction"": ""Forward"",
""Index Name"": ""clients_pkey"",
""Relation Name"": ""clients"",
""Schema"": ""css"",
""Alias"": ""clients"",
""Startup Cost"": 0.29,
""Total Cost"": 2.51,
""Plan Rows"": 1,
""Plan Width"": 29,
""Actual Startup Time"": 0.001,
""Actual Total Time"": 0.002,
""Actual Rows"": 1,
""Actual Loops"": 10648,
""Output"": [""clients.name""],
""Index Cond"": ""(clients.id = proj.client_id)"",
""Rows Removed by Index Recheck"": 0,
""Shared Hit Blocks"": 31944,
""Shared Read Blocks"": 0,
""Shared Dirtied Blocks"": 0,
""Shared Written Blocks"": 0,
""Local Hit Blocks"": 0,
""Local Read Blocks"": 0,
""Local Dirtied Blocks"": 0,
""Local Written Blocks"": 0,
""Temp Read Blocks"": 0,
""Temp Written Blocks"": 0,
""WAL Records"": 0,
""WAL FPI"": 0,
""WAL Bytes"": 0
},
{
""Node Type"": ""Result"",
""Parent Relationship"": ""SubPlan"",
""Subplan Name"": ""SubPlan 6"",
""Parallel Aware"": false,
""Async Capable"": false,
""Startup Cost"": 98.86,
""Total Cost"": 98.87,
""Plan Rows"": 1,
""Plan Width"": 32,
""Actual Startup Time"": 0.011,
""Actual Total Time"": 0.011,
""Actual Rows"": 1,
""Actual Loops"": 10648,
""Output"": [""CASE WHEN (srv_css_hd.tcsindex IS NOT NULL) THEN CASE WHEN ((proj.current_status)::text = 'Closed'::text) THEN CASE WHEN (rcs.status_id IS NULL) THEN 'No'::text ELSE CASE WHEN (rcs.status_id <> ALL ('{4,5}'::integer[])) THEN 'No'::text ELSE 'Yes'::text END END ELSE $7 END ELSE ' '::text END""],
""Shared Hit Blocks"": 89717,
""Shared Read Blocks"": 0,
""Shared Dirtied Blocks"": 0,
""Shared Written Blocks"": 0,
""Local Hit Blocks"": 0,
""Local Read Blocks"": 0,
""Local Dirtied Blocks"": 0,
""Local Written Blocks"": 0,
""Temp Read Blocks"": 0,
""Temp Written Blocks"": 0,
""WAL Records"": 0,
""WAL FPI"": 0,
""WAL Bytes"": 0,
""Plans"": [
{
""Node Type"": ""Aggregate"",
""Strategy"": ""Plain"",
""Partial Mode"": ""Simple"",
""Parent Relationship"": ""InitPlan"",
""Subplan Name"": ""InitPlan 5 (returns $7)"",
""Parallel Aware"": false,
""Async Capable"": false,
""Startup Cost"": 98.84,
""Total Cost"": 98.86,
""Plan Rows"": 1,
""Plan Width"": 32,
""Actual Startup Time"": 0.012,
""Actual Total Time"": 0.012,
""Actual Rows"": 1,
""Actual Loops"": 8950,
""Output"": [""CASE WHEN ((sum((count(survey_css_header.tcs_satisfier_indicator))))::integer = 0) THEN 'No'::text ELSE 'Yes'::text END""],
""Shared Hit Blocks"": 89717,
""Shared Read Blocks"": 0,
""Shared Dirtied Blocks"": 0,
""Shared Written Blocks"": 0,
""Local Hit Blocks"": 0,
""Local Read Blocks"": 0,
""Local Dirtied Blocks"": 0,
""Local Written Blocks"": 0,
""Temp Read Blocks"": 0,
""Temp Written Blocks"": 0,
""WAL Records"": 0,
""WAL FPI"": 0,
""WAL Bytes"": 0,
""Plans"": [
{
""Node Type"": ""Aggregate"",
""Strategy"": ""Hashed"",
""Partial Mode"": ""Simple"",
""Parent Relationship"": ""Outer"",
""Parallel Aware"": false,
""Async Capable"": false,
""Startup Cost"": 98.77,
""Total Cost"": 98.80,
""Plan Rows"": 3,
""Plan Width"": 8,
""Actual Startup Time"": 0.012,
""Actual Total Time"": 0.012,
""Actual Rows"": 2,
""Actual Loops"": 8950,
""Output"": [""(count(survey_css_header.tcs_satisfier_indicator))""],
""Group Key"": [""(count(survey_css_header.tcs_satisfier_indicator))""],
""Planned Partitions"": 0,
""HashAgg Batches"": 1,
""Peak Memory Usage"": 24,
""Disk Usage"": 0,
""Shared Hit Blocks"": 89717,
""Shared Read Blocks"": 0,
""Shared Dirtied Blocks"": 0,
""Shared Written Blocks"": 0,
""Local Hit Blocks"": 0,
""Local Read Blocks"": 0,
""Local Dirtied Blocks"": 0,
""Local Written Blocks"": 0,
""Temp Read Blocks"": 0,
""Temp Written Blocks"": 0,
""WAL Records"": 0,
""WAL FPI"": 0,
""WAL Bytes"": 0,
""Plans"": [
{
""Node Type"": ""Append"",
""Parent Relationship"": ""Outer"",
""Parallel Aware"": false,
""Async Capable"": false,
""Startup Cost"": 2.65,
""Total Cost"": 98.77,
""Plan Rows"": 3,
""Plan Width"": 8,
""Actual Startup Time"": 0.002,
""Actual Total Time"": 0.011,
""Actual Rows"": 3,
""Actual Loops"": 8950,
""Shared Hit Blocks"": 89717,
""Shared Read Blocks"": 0,
""Shared Dirtied Blocks"": 0,
""Shared Written Blocks"": 0,
""Local Hit Blocks"": 0,
""Local Read Blocks"": 0,
""Local Dirtied Blocks"": 0,
""Local Written Blocks"": 0,
""Temp Read Blocks"": 0,
""Temp Written Blocks"": 0,
""WAL Records"": 0,
""WAL FPI"": 0,
""WAL Bytes"": 0,
""Subplans Removed"": 0,
""Plans"": [
{
""Node Type"": ""Aggregate"",
""Strategy"": ""Plain"",
""Partial Mode"": ""Simple"",
""Parent Relationship"": ""Member"",
""Parallel Aware"": false,
""Async Capable"": false,
""Startup Cost"": 2.65,
""Total Cost"": 2.66,
""Plan Rows"": 1,
""Plan Width"": 8,
""Actual Startup Time"": 0.002,
""Actual Total Time"": 0.002,
""Actual Rows"": 1,
""Actual Loops"": 8950,
""Output"": [""count(survey_css_header.tcs_satisfier_indicator)""],
""Shared Hit Blocks"": 35800,
""Shared Read Blocks"": 0,
""Shared Dirtied Blocks"": 0,
""Shared Written Blocks"": 0,
""Local Hit Blocks"": 0,
""Local Read Blocks"": 0,
""Local Dirtied Blocks"": 0,
""Local Written Blocks"": 0,
""Temp Read Blocks"": 0,
""Temp Written Blocks"": 0,
""WAL Records"": 0,
""WAL FPI"": 0,
""WAL Bytes"": 0,
""Plans"": [
{
""Node Type"": ""Result"",
""Parent Relationship"": ""Outer"",
""Parallel Aware"": false,
""Async Capable"": false,
""Startup Cost"": 0.42,
""Total Cost"": 2.64,
""Plan Rows"": 1,
""Plan Width"": 10,
""Actual Startup Time"": 0.002,
""Actual Total Time"": 0.002,
""Actual Rows"": 0,
""Actual Loops"": 8950,
""Output"": [""survey_css_header.tcs_satisfier_indicator""],
""One-Time Filter"": ""(srv_css_hd.tcsindex IS NOT NULL)"",
""Shared Hit Blocks"": 35800,
""Shared Read Blocks"": 0,
""Shared Dirtied Blocks"": 0,
""Shared Written Blocks"": 0,
""Local Hit Blocks"": 0,
""Local Read Blocks"": 0,
""Local Dirtied Blocks"": 0,
""Local Written Blocks"": 0,
""Temp Read Blocks"": 0,
""Temp Written Blocks"": 0,
""WAL Records"": 0,
""WAL FPI"": 0,
""WAL Bytes"": 0,
""Plans"": [
{
""Node Type"": ""Index Scan"",
""Parent Relationship"": ""Outer"",
""Parallel Aware"": false,
""Async Capable"": false,
""Scan Direction"": ""Forward"",
""Index Name"": ""survey_css_header_survey_id_index"",
""Relation Name"": ""survey_css_header"",
""Schema"": ""css"",
""Alias"": ""survey_css_header"",
""Startup Cost"": 0.42,
""Total Cost"": 2.64,
""Plan Rows"": 1,
""Plan Width"": 10,
""Actual Startup Time"": 0.002,
""Actual Total Time"": 0.002,
""Actual Rows"": 0,
""Actual Loops"": 8950,
""Output"": [""survey_css_header.survey_id"", ""survey_css_header.project_id"", ""survey_css_header.contact_person_id"", ""survey_css_header.tcsform"", ""survey_css_header.latest_csat_flag"", ""survey_css_header.tcsindex"", ""survey_css_header.preferred_proj_name"", ""survey_css_header.contact_person_id_src"", ""survey_css_header.ntcs_contact_person_name_src"", ""survey_css_header.is_migrated"", ""survey_css_header.client_format_file"", ""survey_css_header.language"", ""survey_css_header.modified_on"", ""survey_css_header.tcs_satisfier_indicator"", ""survey_css_header.sent_count"", ""survey_css_header.ofi_remarks"", ""survey_css_header.project_type_id"", ""survey_css_header.project_engagement_model_id"", ""survey_css_header.project_methodology_id"", ""survey_css_header.parent_sp_id"", ""survey_css_header.sub_sp_id"", ""survey_css_header.account_id"", ""survey_css_header.staff_aug"", ""survey_css_header.child_du_id"", ""survey_css_header.reason_for_dissatisfier"", ""survey_css_header.calculated_csi"", ""survey_css_header.is_satisfier_calculated"", ""survey_css_header.css_to_survey_flag"", ""survey_css_header.pdf_path"", ""survey_css_header.customer_name"", ""survey_css_header.renew_link_requested"", ""survey_css_header.survey_to_css_flag"", ""survey_css_header.ofi_satisfier_indicator"", ""survey_css_header.top_three_strengths"", ""survey_css_header.ces_score""],
""Index Cond"": ""(survey_css_header.survey_id = srv_hd.survey_id)"",
""Rows Removed by Index Recheck"": 0,
""Filter"": ""((survey_css_header.tcs_satisfier_indicator)::text = 'Dissatisfier'::text)"",
""Rows Removed by Filter"": 1,
""Shared Hit Blocks"": 35800,
""Shared Read Blocks"": 0,
""Shared Dirtied Blocks"": 0,
""Shared Written Blocks"": 0,
""Local Hit Blocks"": 0,
""Local Read Blocks"": 0,
""Local Dirtied Blocks"": 0,
""Local Written Blocks"": 0,
""Temp Read Blocks"": 0,
""Temp Written Blocks"": 0,
""WAL Records"": 0,
""WAL FPI"": 0,
""WAL Bytes"": 0
}
]
}
]
},
{
""Node Type"": ""Aggregate"",
""Strategy"": ""Plain"",
""Partial Mode"": ""Simple"",
""Parent Relationship"": ""Member"",
""Parallel Aware"": false,
""Async Capable"": false,
""Startup Cost"": 93.40,
""Total Cost"": 93.41,
""Plan Rows"": 1,
""Plan Width"": 8,
""Actual Startup Time"": 0.007,
""Actual Total Time"": 0.007,
""Actual Rows"": 1,
""Actual Loops"": 8950,
""Output"": [""count(survey_responses.tcs_satisfier_indicator)""],
""Shared Hit Blocks"": 49317,
""Shared Read Blocks"": 0,
""Shared Dirtied Blocks"": 0,
""Shared Written Blocks"": 0,
""Local Hit Blocks"": 0,
""Local Read Blocks"": 0,
""Local Dirtied Blocks"": 0,
""Local Written Blocks"": 0,
""Temp Read Blocks"": 0,
""Temp Written Blocks"": 0,
""WAL Records"": 0,
""WAL FPI"": 0,
""WAL Bytes"": 0,
""Plans"": [
{
""Node Type"": ""Index Scan"",
""Parent Relationship"": ""Outer"",
""Parallel Aware"": false,
""Async Capable"": false,
""Scan Direction"": ""Forward"",
""Index Name"": ""survey_responses_survey_id_index"",
""Relation Name"": ""survey_responses"",
""Schema"": ""css"",
""Alias"": ""survey_responses"",
""Startup Cost"": 0.43,
""Total Cost"": 93.40,
""Plan Rows"": 2,
""Plan Width"": 10,
""Actual Startup Time"": 0.005,
""Actual Total Time"": 0.007,
""Actual Rows"": 1,
""Actual Loops"": 8950,
""Output"": [""survey_responses.survey_id"", ""survey_responses.project_id"", ""survey_responses.contact_person_id"", ""survey_responses.section_id"", ""survey_responses.att_id"", ""survey_responses.att_quest_id"", ""survey_responses.dimension_id"", ""survey_responses.mandatory_for_corp_flag"", ""survey_responses.dimension_selected_value"", ""survey_responses.survey_response_received_date"", ""survey_responses.dis_sat_ind"", ""survey_responses.att_level_config_remarks"", ""survey_responses.is_migrated"", ""survey_responses.tcs_satisfier_indicator"", ""survey_responses.is_masked"", ""survey_responses.reason_for_dissatisfier"", ""survey_responses.css_to_survey_flag"", ""survey_responses.survey_to_css_flag"", ""survey_responses.created_ts"", ""survey_responses.created_by""],
""Index Cond"": ""(survey_responses.survey_id = srv_hd.survey_id)"",
""Rows Removed by Index Recheck"": 0,
""Filter"": ""((survey_responses.tcs_satisfier_indicator)::text = 'Dissatisfier'::text)"",
""Rows Removed by Filter"": 25,
""Shared Hit Blocks"": 49317,
""Shared Read Blocks"": 0,
""Shared Dirtied Blocks"": 0,
""Shared Written Blocks"": 0,
""Local Hit Blocks"": 0,
""Local Read Blocks"": 0,
""Local Dirtied Blocks"": 0,
""Local Written Blocks"": 0,
""Temp Read Blocks"": 0,
""Temp Written Blocks"": 0,
""WAL Records"": 0,
""WAL FPI"": 0,
""WAL Bytes"": 0
}
]
},
{
""Node Type"": ""Aggregate"",
""Strategy"": ""Plain"",
""Partial Mode"": ""Simple"",
""Parent Relationship"": ""Member"",
""Parallel Aware"": false,
""Async Capable"": false,
""Startup Cost"": 2.65,
""Total Cost"": 2.66,
""Plan Rows"": 1,
""Plan Width"": 8,
""Actual Startup Time"": 0.000,
""Actual Total Time"": 0.001,
""Actual Rows"": 1,
""Actual Loops"": 8950,
""Output"": [""count(survey_css_header_1.ofi_satisfier_indicator)""],
""Shared Hit Blocks"": 4600,
""Shared Read Blocks"": 0,
""Shared Dirtied Blocks"": 0,
""Shared Written Blocks"": 0,
""Local Hit Blocks"": 0,
""Local Read Blocks"": 0,
""Local Dirtied Blocks"": 0,
""Local Written Blocks"": 0,
""Temp Read Blocks"": 0,
""Temp Written Blocks"": 0,
""WAL Records"": 0,
""WAL FPI"": 0,
""WAL Bytes"": 0,
""Plans"": [
{
""Node Type"": ""Result"",
""Parent Relationship"": ""Outer"",
""Parallel Aware"": false,
""Async Capable"": false,
""Startup Cost"": 0.42,
""Total Cost"": 2.64,
""Plan Rows"": 1,
""Plan Width"": 10,
""Actual Startup Time"": 0.000,
""Actual Total Time"": 0.000,
""Actual Rows"": 0,
""Actual Loops"": 8950,
""Output"": [""survey_css_header_1.ofi_satisfier_indicator""],
""One-Time Filter"": ""((srv_css_hd.tcsindex IS NOT NULL) AND ((srv_css_hd.tcsform)::text = 'N'::text))"",
""Shared Hit Blocks"": 4600,
""Shared Read Blocks"": 0,
""Shared Dirtied Blocks"": 0,
""Shared Written Blocks"": 0,
""Local Hit Blocks"": 0,
""Local Read Blocks"": 0,
""Local Dirtied Blocks"": 0,
""Local Written Blocks"": 0,
""Temp Read Blocks"": 0,
""Temp Written Blocks"": 0,
""WAL Records"": 0,
""WAL FPI"": 0,
""WAL Bytes"": 0,
""Plans"": [
{
""Node Type"": ""Index Scan"",
""Parent Relationship"": ""Outer"",
""Parallel Aware"": false,
""Async Capable"": false,
""Scan Direction"": ""Forward"",
""Index Name"": ""survey_css_header_survey_id_index"",
""Relation Name"": ""survey_css_header"",
""Schema"": ""css"",
""Alias"": ""survey_css_header_1"",
""Startup Cost"": 0.42,
""Total Cost"": 2.64,
""Plan Rows"": 1,
""Plan Width"": 10,
""Actual Startup Time"": 0.001,
""Actual Total Time"": 0.001,
""Actual Rows"": 0,
""Actual Loops"": 1150,
""Output"": [""survey_css_header_1.survey_id"", ""survey_css_header_1.project_id"", ""survey_css_header_1.contact_person_id"", ""survey_css_header_1.tcsform"", ""survey_css_header_1.latest_csat_flag"", ""survey_css_header_1.tcsindex"", ""survey_css_header_1.preferred_proj_name"", ""survey_css_header_1.contact_person_id_src"", ""survey_css_header_1.ntcs_contact_person_name_src"", ""survey_css_header_1.is_migrated"", ""survey_css_header_1.client_format_file"", ""survey_css_header_1.language"", ""survey_css_header_1.modified_on"", ""survey_css_header_1.tcs_satisfier_indicator"", ""survey_css_header_1.sent_count"", ""survey_css_header_1.ofi_remarks"", ""survey_css_header_1.project_type_id"", ""survey_css_header_1.project_engagement_model_id"", ""survey_css_header_1.project_methodology_id"", ""survey_css_header_1.parent_sp_id"", ""survey_css_header_1.sub_sp_id"", ""survey_css_header_1.account_id"", ""survey_css_header_1.staff_aug"", ""survey_css_header_1.child_du_id"", ""survey_css_header_1.reason_for_dissatisfier"", ""survey_css_header_1.calculated_csi"", ""survey_css_header_1.is_satisfier_calculated"", ""survey_css_header_1.css_to_survey_flag"", ""survey_css_header_1.pdf_path"", ""survey_css_header_1.customer_name"", ""survey_css_header_1.renew_link_requested"", ""survey_css_header_1.survey_to_css_flag"", ""survey_css_header_1.ofi_satisfier_indicator"", ""survey_css_header_1.top_three_strengths"", ""survey_css_header_1.ces_score""],
""Index Cond"": ""(survey_css_header_1.survey_id = srv_hd.survey_id)"",
""Rows Removed by Index Recheck"": 0,
""Filter"": ""((survey_css_header_1.ofi_satisfier_indicator)::text = 'Dissatisfier'::text)"",
""Rows Removed by Filter"": 1,
""Shared Hit Blocks"": 4600,
""Shared Read Blocks"": 0,
""Shared Dirtied Blocks"": 0,
""Shared Written Blocks"": 0,
""Local Hit Blocks"": 0,
""Local Read Blocks"": 0,
""Local Dirtied Blocks"": 0,
""Local Written Blocks"": 0,
""Temp Read Blocks"": 0,
""Temp Written Blocks"": 0,
""WAL Records"": 0,
""WAL FPI"": 0,
""WAL Bytes"": 0
}
]
}
]
}
]
}
]
}
]
}
]
},
{
""Node Type"": ""Seq Scan"",
""Parent Relationship"": ""SubPlan"",
""Subplan Name"": ""SubPlan 7"",
""Parallel Aware"": false,
""Async Capable"": false,
""Relation Name"": ""survey_types_mst"",
""Schema"": ""css"",
""Alias"": ""survey_types_mst"",
""Startup Cost"": 0.00,
""Total Cost"": 1.20,
""Plan Rows"": 1,
""Plan Width"": 8,
""Actual Startup Time"": 0.001,
""Actual Total Time"": 0.001,
""Actual Rows"": 1,
""Actual Loops"": 10648,
""Output"": [""survey_types_mst.survey_type_name""],
""Filter"": ""(survey_types_mst.survey_type_id = srv_hd.survey_type_id)"",
""Rows Removed by Filter"": 18,
""Shared Hit Blocks"": 10648,
""Shared Read Blocks"": 0,
""Shared Dirtied Blocks"": 0,
""Shared Written Blocks"": 0,
""Local Hit Blocks"": 0,
""Local Read Blocks"": 0,
""Local Dirtied Blocks"": 0,
""Local Written Blocks"": 0,
""Temp Read Blocks"": 0,
""Temp Written Blocks"": 0,
""WAL Records"": 0,
""WAL FPI"": 0,
""WAL Bytes"": 0
},
{
""Node Type"": ""Result"",
""Parent Relationship"": ""SubPlan"",
""Subplan Name"": ""SubPlan 8"",
""Parallel Aware"": false,
""Async Capable"": false,
""Startup Cost"": 0.00,
""Total Cost"": 0.01,
""Plan Rows"": 1,
""Plan Width"": 4,
""Actual Startup Time"": 0.000,
""Actual Total Time"": 0.000,
""Actual Rows"": 1,
""Actual Loops"": 10648,
""Output"": [""CASE WHEN (srv_hd.survey_resend_date IS NOT NULL) THEN srv_hd.survey_resend_date ELSE srv_hd.survey_sent_date END""],
""Shared Hit Blocks"": 0,
""Shared Read Blocks"": 0,
""Shared Dirtied Blocks"": 0,
""Shared Written Blocks"": 0,
""Local Hit Blocks"": 0,
""Local Read Blocks"": 0,
""Local Dirtied Blocks"": 0,
""Local Written Blocks"": 0,
""Temp Read Blocks"": 0,
""Temp Written Blocks"": 0,
""WAL Records"": 0,
""WAL FPI"": 0,
""WAL Bytes"": 0
},
{
""Node Type"": ""Seq Scan"",
""Parent Relationship"": ""SubPlan"",
""Subplan Name"": ""SubPlan 9"",
""Parallel Aware"": false,
""Async Capable"": false,
""Relation Name"": ""survey_status"",
""Schema"": ""css"",
""Alias"": ""survey_status"",
""Startup Cost"": 0.00,
""Total Cost"": 1.14,
""Plan Rows"": 1,
""Plan Width"": 32,
""Actual Startup Time"": 0.001,
""Actual Total Time"": 0.001,
""Actual Rows"": 1,
""Actual Loops"": 10648,
""Output"": [""CASE WHEN ((survey_status.survey_status_name)::text = 'SENT'::text) THEN (CASE WHEN srv_hd.is_survey_offline THEN 'SENT (offline)'::text ELSE 'SENT'::text END)::character varying ELSE CASE WHEN ((survey_status.survey_status_name)::text = 'RECEIVED'::text) THEN (CASE WHEN srv_hd.is_survey_offline THEN 'RECEIVED (offline)'::text ELSE 'RECEIVED'::text END)::character varying ELSE survey_status.survey_status_name END END""],
""Filter"": ""(survey_status.survey_status_id = srv_hd.survey_status_id)"",
""Rows Removed by Filter"": 10,
""Shared Hit Blocks"": 10648,
""Shared Read Blocks"": 0,
""Shared Dirtied Blocks"": 0,
""Shared Written Blocks"": 0,
""Local Hit Blocks"": 0,
""Local Read Blocks"": 0,
""Local Dirtied Blocks"": 0,
""Local Written Blocks"": 0,
""Temp Read Blocks"": 0,
""Temp Written Blocks"": 0,
""WAL Records"": 0,
""WAL FPI"": 0,
""WAL Bytes"": 0
},
{
""Node Type"": ""Unique"",
""Parent Relationship"": ""SubPlan"",
""Subplan Name"": ""SubPlan 10"",
""Parallel Aware"": false,
""Async Capable"": false,
""Startup Cost"": 2.65,
""Total Cost"": 2.65,
""Plan Rows"": 1,
""Plan Width"": 9,
""Actual Startup Time"": 0.003,
""Actual Total Time"": 0.003,
""Actual Rows"": 1,
""Actual Loops"": 10648,
""Output"": [""srv.link_status""],
""Shared Hit Blocks"": 43471,
""Shared Read Blocks"": 0,
""Shared Dirtied Blocks"": 0,
""Shared Written Blocks"": 0,
""Local Hit Blocks"": 0,
""Local Read Blocks"": 0,
""Local Dirtied Blocks"": 0,
""Local Written Blocks"": 0,
""Temp Read Blocks"": 0,
""Temp Written Blocks"": 0,
""WAL Records"": 0,
""WAL FPI"": 0,
""WAL Bytes"": 0,
""Plans"": [
{
""Node Type"": ""Sort"",
""Parent Relationship"": ""Outer"",
""Parallel Aware"": false,
""Async Capable"": false,
""Startup Cost"": 2.65,
""Total Cost"": 2.65,
""Plan Rows"": 1,
""Plan Width"": 9,
""Actual Startup Time"": 0.003,
""Actual Total Time"": 0.003,
""Actual Rows"": 1,
""Actual Loops"": 10648,
""Output"": [""srv.link_status""],
""Sort Key"": [""srv.link_status""],
""Sort Method"": ""quicksort"",
""Sort Space Used"": 25,
""Sort Space Type"": ""Memory"",
""Shared Hit Blocks"": 43471,
""Shared Read Blocks"": 0,
""Shared Dirtied Blocks"": 0,
""Shared Written Blocks"": 0,
""Local Hit Blocks"": 0,
""Local Read Blocks"": 0,
""Local Dirtied Blocks"": 0,
""Local Written Blocks"": 0,
""Temp Read Blocks"": 0,
""Temp Written Blocks"": 0,
""WAL Records"": 0,
""WAL FPI"": 0,
""WAL Bytes"": 0,
""Plans"": [
{
""Node Type"": ""Index Scan"",
""Parent Relationship"": ""Outer"",
""Parallel Aware"": false,
""Async Capable"": false,
""Scan Direction"": ""Forward"",
""Index Name"": ""survey_link_survey_id_index"",
""Relation Name"": ""survey_link"",
""Schema"": ""css"",
""Alias"": ""srv"",
""Startup Cost"": 0.42,
""Total Cost"": 2.64,
""Plan Rows"": 1,
""Plan Width"": 9,
""Actual Startup Time"": 0.002,
""Actual Total Time"": 0.002,
""Actual Rows"": 1,
""Actual Loops"": 10648,
""Output"": [""srv.link_status""],
""Index Cond"": ""(srv.survey_id = srv_hd.survey_id)"",
""Rows Removed by Index Recheck"": 0,
""Shared Hit Blocks"": 43471,
""Shared Read Blocks"": 0,
""Shared Dirtied Blocks"": 0,
""Shared Written Blocks"": 0,
""Local Hit Blocks"": 0,
""Local Read Blocks"": 0,
""Local Dirtied Blocks"": 0,
""Local Written Blocks"": 0,
""Temp Read Blocks"": 0,
""Temp Written Blocks"": 0,
""WAL Records"": 0,
""WAL FPI"": 0,
""WAL Bytes"": 0
}
]
}
]
},
{
""Node Type"": ""Seq Scan"",
""Parent Relationship"": ""SubPlan"",
""Subplan Name"": ""SubPlan 11"",
""Parallel Aware"": false,
""Async Capable"": false,
""Relation Name"": ""rca_status_mst"",
""Schema"": ""css"",
""Alias"": ""rca_status_mst"",
""Startup Cost"": 0.00,
""Total Cost"": 1.06,
""Plan Rows"": 1,
""Plan Width"": 9,
""Actual Startup Time"": 0.000,
""Actual Total Time"": 0.000,
""Actual Rows"": 0,
""Actual Loops"": 0,
""Output"": [""rca_status_mst.status""],
""Filter"": ""(rca_status_mst.id = rcs.status_id)"",
""Rows Removed by Filter"": 0,
""Shared Hit Blocks"": 0,
""Shared Read Blocks"": 0,
""Shared Dirtied Blocks"": 0,
""Shared Written Blocks"": 0,
""Local Hit Blocks"": 0,
""Local Read Blocks"": 0,
""Local Dirtied Blocks"": 0,
""Local Written Blocks"": 0,
""Temp Read Blocks"": 0,
""Temp Written Blocks"": 0,
""WAL Records"": 0,
""WAL FPI"": 0,
""WAL Bytes"": 0
}
]
}
]
}
]
},
""Settings"": {
""effective_cache_size"": ""42GB"",
""effective_io_concurrency"": ""200"",
""jit"": ""off"",
""max_parallel_workers_per_gather"": ""4"",
""random_page_cost"": ""1.1"",
""search_path"": ""\""$user\"",css,public"",
""temp_buffers"": ""5GB""
},
""Planning"": {
""Shared Hit Blocks"": 224,
""Shared Read Blocks"": 0,
""Shared Dirtied Blocks"": 0,
""Shared Written Blocks"": 0,
""Local Hit Blocks"": 0,
""Local Read Blocks"": 0,
""Local Dirtied Blocks"": 0,
""Local Written Blocks"": 0,
""Temp Read Blocks"": 0,
""Temp Written Blocks"": 0
},
""Planning Time"": 6.341,
""Triggers"": [
],
""Execution Time"": 409.842
}
]"
SELECT DISTINCT
d.id_seq AS parentdeliveryunitid,
d.du_name::VARCHAR AS parentdeliveryUnitName,
dl.du_name AS deliveryunitname,
gd.gdc_name AS gdc,
ip.parent_description AS ou,
cl.name AS accountname,
proj.client_id AS accountid,
proj.project_id AS projectid,
proj.project_name AS projectname,
proj.current_status AS projectstatus,
srv_css_hd.preferred_proj_name AS preferredprojectname,
srv_hd.survey_title AS cssName,
COALESCE(srv_css_hd.tcsindex, -1) AS csipercentage,
srv_hd.id AS surveyid,
srv_hd.survey_id AS ccsid,
eng.at_projgrpid AS engagementId,
eng.at_classification AS engagementComplexity,
CASE
WHEN srv_css_hd.tcsindex IS NOT NULL THEN
CASE
WHEN proj.current_status = 'Closed' THEN
CASE
WHEN rcs.status_id IS NULL OR rcs.status_id NOT IN (4, 5) THEN 'No'
ELSE 'Yes'
END
ELSE
(SELECT
CASE
WHEN SUM(sh_count)::INT = 0 THEN 'No'
ELSE 'Yes'
END AS mandatory_status
FROM (
SELECT COUNT(tcs_satisfier_indicator) AS sh_count
FROM css.survey_css_header
WHERE survey_id = srv_hd.survey_id
AND tcs_satisfier_indicator = 'Dissatisfier'
AND srv_css_hd.tcsindex IS NOT NULL
UNION ALL
SELECT COUNT(tcs_satisfier_indicator) AS sh_count
FROM css.survey_responses
WHERE survey_id = srv_hd.survey_id
AND tcs_satisfier_indicator = 'Dissatisfier'
UNION ALL
SELECT COUNT(ofi_satisfier_indicator) AS sh_count
FROM css.survey_css_header
WHERE survey_id = srv_hd.survey_id
AND ofi_satisfier_indicator = 'Dissatisfier'
AND srv_css_hd.tcsindex IS NOT NULL
AND srv_css_hd.tcsform = 'N'
) AS combined_counts)
END
ELSE ' '
END AS apricotMandatoryStatus,
(srv_hd.financialyear_from || '-' || (srv_hd.financialyear_from + 1))::VARCHAR AS financialyear,
srv_hd.half_year AS halfyear,
mst.survey_type_name AS surveytype,
(COALESCE(clmem.first_name, '') || COALESCE(clmem.middle_name, ' ') || COALESCE(clmem.last_name, ' '))::VARCHAR AS customerrepresentative,
srv_css_hd.tcsform AS cssFormal,
cap.css_applicability_flag AS cssapplicability,
COALESCE(srv_hd.survey_resend_date, srv_hd.survey_sent_date) AS requestDate,
srv_hd.survey_response_received_date AS responseDate,
CASE
WHEN ss.survey_status_name = 'SENT' THEN (CASE WHEN srv_hd.is_survey_offline = TRUE THEN 'SENT (offline)' ELSE 'SENT' END)
WHEN ss.survey_status_name = 'RECEIVED' THEN (CASE WHEN srv_hd.is_survey_offline = TRUE THEN 'RECEIVED (offline)' ELSE 'RECEIVED' END)
ELSE ss.survey_status_name
END AS cssstatus,
sl.link_status AS linkstatus,
f.freezingflag AS frozenstatus,
TO_DATE('', 'DD Mon YYYY') AS frozendate, -- Corrected formatting, though still likely NULL
CASE
WHEN rcs.status_id IS NOT NULL THEN
CASE
WHEN rcs.status_id = 1 THEN 'Initiated'
WHEN rcs.status_id = 2 THEN 'Analysed'
WHEN rcs.status_id = 3 THEN 'Planned'
WHEN rcs.status_id = 4 THEN 'Planned'
WHEN rcs.status_id = 5 THEN 'Closed'
ELSE rca_s_mst.status
END
ELSE
CASE
WHEN srv_hd.survey_status_id = 3000 THEN 'Not Initiated'
ELSE 'Not Applicable'
END
END AS apricotstatus,
rcs.id AS apricotid,
NULL AS null_column_name, -- Give this a proper name if it serves a purpose
srv_hd.survey_status_id AS cssstatusid,
srv_hd.updated_ts AS updatedts
FROM
css.css_applicable_projects cap
JOIN
css.projects proj ON cap.project_id = proj.project_id
JOIN
css.survey_header srv_hd ON proj.project_id = srv_hd.project_id
JOIN
css.deliveryunits d ON proj.delivery_unit_id = d.id AND d.du_type_id = proj.deliveryunit_type_id
JOIN
css.survey_css_header srv_css_hd ON srv_css_hd.survey_id = srv_hd.survey_id AND srv_hd.project_id = srv_css_hd.project_id
JOIN
css.client_members_new clmem ON clmem.id = srv_css_hd.contact_person_id
LEFT JOIN
css.rca_sources rs ON rs.source_id = srv_hd.survey_id -- Moved this join up
LEFT JOIN
css.rcas rcs ON rcs.id = rs.rca_id -- Moved this join up, now `rcs` is available
--- Optimized Subqueries by converting to LEFT JOINs ---
LEFT JOIN
css.deliveryunits dl ON dl.id = proj.sub_du_id
LEFT JOIN
css.gdcmst gd ON gd.gdc_code = proj.operational_dc
LEFT JOIN
css.ip_master ip ON ip.id = proj.ip_id
LEFT JOIN
css.clients cl ON cl.id = proj.client_id
LEFT JOIN
css.survey_types_mst mst ON mst.survey_type_id = srv_hd.survey_type_id
LEFT JOIN
css.survey_status ss ON ss.survey_status_id = srv_hd.survey_status_id
LEFT JOIN
css.survey_link sl ON sl.survey_id = srv_hd.survey_id
LEFT JOIN
css.rca_status_mst rca_s_mst ON rca_s_mst.id = rcs.status_id -- This join depends on `rcs`
--- Existing LEFT JOINs (order now adjusted) ---
LEFT OUTER JOIN
css.survey_freezing_info f ON f.du_id = proj.delivery_unit_id
AND f.du_type_id = proj.deliveryunit_type_id
AND f.financialyearfrom = srv_hd.financialyear_from
AND f.yearhalf = srv_hd.half_year
LEFT OUTER JOIN
css.t_upp_proj_group_map engmap ON engmap.at_projectid = srv_hd.project_id
LEFT OUTER JOIN
css.t_upp_project_group eng ON eng.at_projgrpid = engmap.at_projgrpid
WHERE
srv_hd.survey_status_id BETWEEN 2000 AND 11000
AND (srv_hd.financialyear_from || '-' || (srv_hd.financialyear_from + 1) || ' ' || srv_hd.half_year) = '2024-2025 H1';
WITH survey_data AS (
SELECT
survey_id,
project_id,
survey_title,
survey_status_id,
financialyear_from,
half_year,
survey_resend_date,
survey_sent_date,
survey_response_received_date,
is_survey_offline,
survey_type_id,
updated_ts
FROM css.survey_header
WHERE survey_status_id BETWEEN 2000 AND 11000
AND financialyear_from||'-'||financialyear_from + 1 ||' '||half_year = '2024-2025 H1'
),
dissatisfier_counts AS (
SELECT
survey_id,
COUNT(CASE WHEN tcs_satisfier_indicator = 'Dissatisfier' THEN 1 END) AS count_dissatisfiers
FROM css.survey_css_header
GROUP BY survey_id
)
SELECT DISTINCT
d.id_seq AS parentdeliveryunitid,
d.du_name::character varying AS parentdeliveryUnitName,
dl.du_name AS deliveryunitname,
gd.gdc_name AS gdc,
ip.parent_description AS ou,
c.name AS accountname,
proj.client_id AS accountid,
proj.project_id AS projectid,
proj.project_name AS projectname,
proj.current_status AS projectstatus,
srv_css_hd.preferred_proj_name AS preferredprojectname,
srv_hd.survey_title AS cssName,
COALESCE(srv_css_hd.tcsindex, -1) AS csipercentage,
srv_hd.id AS surveyid,
srv_hd.survey_id AS ccsid,
eng.at_projgrpid AS engagementId,
eng.at_classification AS engagementComplexity,
CASE
WHEN srv_css_hd.tcsindex IS NULL THEN ' '
WHEN proj.current_status = 'Closed' THEN
CASE
WHEN rcs.status_id IS NULL THEN 'No'
WHEN rcs.status_id NOT IN (4,5) THEN 'No'
ELSE 'Yes'
END
WHEN dc.count_dissatisfiers > 0 THEN 'Yes'
ELSE 'No'
END AS apricotMandatoryStatus,
(srv_hd.financialyear_from || '-'|| (srv_hd.financialyear_from+1))::character varying AS financialyear,
srv_hd.half_year AS halfyear,
st.survey_type_name AS surveytype,
(COALESCE(clmem.first_name, ' ') || COALESCE(clmem.middle_name, ' ') || COALESCE(clmem.last_name, ' '))::varchar AS customerrepresentative,
srv_css_hd.tcsform AS cssFormal,
cap.css_applicability_flag AS cssapplicability,
COALESCE(srv_hd.survey_resend_date, srv_hd.survey_sent_date) AS requestDate,
srv_hd.survey_response_received_date AS responseDate,
CASE
WHEN ss.survey_status_name = 'SENT' THEN
CASE WHEN srv_hd.is_survey_offline THEN 'SENT (offline)' ELSE 'SENT' END
WHEN ss.survey_status_name = 'RECEIVED' THEN
CASE WHEN srv_hd.is_survey_offline THEN 'RECEIVED (offline)' ELSE 'RECEIVED' END
ELSE ss.survey_status_name
END AS cssstatus,
(SELECT DISTINCT srv.link_status FROM css.survey_link srv WHERE srv.survey_id = srv_hd.survey_id) AS linkstatus,
f.freezingflag AS frozenstatus,
to_date('','DD Mon YYY') AS frozendate,
CASE
WHEN rcs.status_id IS NOT NULL THEN
CASE
WHEN rcs.status_id = 1 THEN 'Initiated'
WHEN rcs.status_id = 2 THEN 'Analysed'
WHEN rcs.status_id IN (3,4) THEN 'Planned'
WHEN rcs.status_id = 5 THEN 'Closed'
ELSE (SELECT status FROM css.rca_status_mst WHERE id=rcs.status_id)
END
WHEN srv_hd.survey_status_id=3000 THEN 'Not Initiated'
ELSE 'Not Applicable'
END AS apricotstatus,
rcs.id AS apricotid,
NULL,
srv_hd.survey_status_id AS cssstatusid,
srv_hd.updated_ts AS updatedts
FROM css.css_applicable_projects cap
JOIN survey_data srv_hd ON srv_hd.project_id = cap.project_id
JOIN css.projects proj ON proj.project_id = srv_hd.project_id
JOIN css.deliveryunits d ON proj.delivery_unit_id = d.id AND d.du_type_id = proj.deliveryunit_type_id
LEFT JOIN css.deliveryunits dl ON dl.id = proj.sub_du_id
LEFT JOIN css.gdcmst gd ON gd.gdc_code = proj.operational_dc
LEFT JOIN css.ip_master ip ON ip.id = proj.ip_id
LEFT JOIN css.clients c ON c.id = proj.client_id
LEFT JOIN css.survey_types_mst st ON st.survey_type_id = srv_hd.survey_type_id
LEFT JOIN css.survey_status ss ON ss.survey_status_id = srv_hd.survey_status_id
LEFT JOIN css.rca_sources rs ON rs.source_id = srv_hd.survey_id
LEFT JOIN css.survey_freezing_info f ON f.du_id = proj.delivery_unit_id
AND f.du_type_id = proj.deliveryunit_type_id
AND f.financialyearfrom = srv_hd.financialyear_from
AND f.yearhalf = srv_hd.half_year
LEFT JOIN css.t_upp_proj_group_map engmap ON engmap.at_projectid = srv_hd.project_id
LEFT JOIN css.t_upp_project_group eng ON eng.at_projgrpid = engmap.at_projgrpid
LEFT JOIN css.rcas rcs ON rcs.id = rs.rca_id
JOIN css.survey_css_header srv_css_hd ON srv_css_hd.survey_id = srv_hd.survey_id AND srv_hd.project_id = srv_css_hd.project_id
JOIN css.client_members_new clmem ON clmem.id = srv_css_hd.contact_person_id
LEFT JOIN dissatisfier_counts dc ON dc.survey_id = srv_hd.survey_id;
WITH
survey_data AS (
SELECT * FROM css.survey_header
WHERE survey_status_id BETWEEN 2000 AND 11000
AND financialyear_from||'-'||financialyear_from + 1 ||' '||half_year = '2024-2025 H1'
),
dissatisfier_counts AS (
-- From survey_css_header (TCS dissatisfiers)
SELECT survey_id, COUNT(*) AS count_dissatisfiers
FROM css.survey_css_header
WHERE tcs_satisfier_indicator = 'Dissatisfier' AND tcsindex IS NOT NULL
GROUP BY survey_id
UNION ALL
-- From survey_responses (TCS dissatisfiers)
SELECT survey_id, COUNT(*) AS count_dissatisfiers
FROM css.survey_responses
WHERE tcs_satisfier_indicator = 'Dissatisfier'
GROUP BY survey_id
UNION ALL
-- From survey_css_header (OFI dissatisfiers when conditions met)
SELECT survey_id, COUNT(*) AS count_dissatisfiers
FROM css.survey_css_header
WHERE ofi_satisfier_indicator = 'Dissatisfier'
AND tcsindex IS NOT NULL AND tcsform = 'N'
GROUP BY survey_id
),
aggregated_dissatisfiers AS (
SELECT survey_id, SUM(count_dissatisfiers) AS total_dissatisfiers
FROM dissatisfier_counts
GROUP BY survey_id
)
SELECT DISTINCT
d.id_seq AS parentdeliveryunitid,
d.du_name::character varying AS parentdeliveryUnitName,
dl.du_name AS deliveryunitname,
gd.gdc_name AS gdc,
ip.parent_description AS ou,
c.name AS accountname,
proj.client_id AS accountid,
proj.project_id AS projectid,
proj.project_name AS projectname,
proj.current_status AS projectstatus,
srv_css_hd.preferred_proj_name AS preferredprojectname,
srv_hd.survey_title AS cssName,
COALESCE(srv_css_hd.tcsindex, -1) AS csipercentage,
srv_hd.id AS surveyid,
srv_hd.survey_id AS ccsid,
eng.at_projgrpid AS engagementId,
eng.at_classification AS engagementComplexity,
CASE
WHEN srv_css_hd.tcsindex IS NULL THEN ' '
WHEN proj.current_status = 'Closed' THEN
CASE
WHEN rcs.status_id IS NULL THEN 'No'
WHEN rcs.status_id NOT IN (4,5) THEN 'No'
ELSE 'Yes'
END
ELSE
CASE
WHEN (SELECT COALESCE(total_dissatisfiers, 0)
FROM aggregated_dissatisfiers
WHERE survey_id = srv_hd.survey_id) > 0
THEN 'Yes'
ELSE 'No'
END
END AS apricotMandatoryStatus,
-- Rest of your columns...
FROM css.css_applicable_projects cap
JOIN survey_data srv_hd ON srv_hd.project_id = cap.project_id
-- Rest of your joins...
import { Component, NgZone, OnDestroy } from '@angular/core';
@Component({
selector: 'app-speech-to-text',
templateUrl: './speech-to-text.component.html',
styleUrls: ['./speech-to-text.component.css']
})
export class SpeechToTextComponent implements OnDestroy {
transcript = '';
isRecording = false;
recognition: any;
constructor(private ngZone: NgZone) {
const SpeechRecognition = (window as any).SpeechRecognition || (window as any).webkitSpeechRecognition;
if (SpeechRecognition) {
this.recognition = new SpeechRecognition();
this.recognition.continuous = true;
this.recognition.interimResults = true;
this.recognition.lang = 'en-US';
this.recognition.onresult = (event: any) => {
let finalTranscript = '';
for (let i = event.resultIndex; i < event.results.length; i++) {
const transcriptChunk = event.results[i][0].transcript;
if (event.results[i].isFinal) {
finalTranscript += transcriptChunk + ' ';
} else {
finalTranscript += transcriptChunk;
}
}
// Use NgZone to trigger change detection
this.ngZone.run(() => {
this.transcript = finalTranscript;
});
};
this.recognition.onerror = (event: any) => {
console.error('Speech recognition error', event.error);
};
} else {
alert('Speech recognition is not supported in this browser.');
}
}
startRecording(): void {
if (this.recognition) {
this.recognition.start();
this.isRecording = true;
}
}
stopRecording(): void {
if (this.recognition) {
this.recognition.stop();
this.isRecording = false;
}
}
ngOnDestroy(): void {
this.stopRecording();
}
}
<div class="container">
<h2>Real-Time Speech to Text</h2>
<button (click)="startRecording()" [disabled]="isRecording">???? Start</button>
<button (click)="stopRecording()" [disabled]="!isRecording">???? Stop</button>
<div class="transcript">
<h3>Transcript:</h3>
<p>{{ transcript }}</p>
</div>
</div>
{"id":173,"date":"2025-06-25T00:57:23","date_gmt":"2025-06-24T19:27:23","guid":{"rendered":"https:\/\/kidszillaeducation.com\/?post_type=web-story&p=173"},"modified":"2025-06-25T01:09:08","modified_gmt":"2025-06-24T19:39:08","slug":"meet-the-wild-animals-jungle-friends-for-kids","status":"publish","type":"web-story","link":"https:\/\/kidszillaeducation.com\/web-stories\/meet-the-wild-animals-jungle-friends-for-kids\/","title":{"rendered":"Meet the Wild Animals \u2013 Jungle Friends for Kids"},"content":{"rendered":"