diff --git a/mappings_old/metrics/citizens_next_year_age.ktr b/mappings_old/metrics/citizens_next_year_age.ktr
index 6f0f42c..8bb599c 100644
--- a/mappings_old/metrics/citizens_next_year_age.ktr
+++ b/mappings_old/metrics/citizens_next_year_age.ktr
@@ -436,22 +436,18 @@
- business_metrics_connection
- 10.10.31.119
+ ervu-person-registry
+ person-dbhost
POSTGRESQL
Native
- ervu_business_metrics
- 5432
- ervu_business_metrics
- Encrypted 657276755ddceddca104c281979414ab64cc9bacc9
+ person-dbname
+ 4444
+ person-dbuser
+ Encrypted 2be98afc86aa7f2e4cb79ce10db80b9cf
-
- EXTRA_OPTION_POSTGRESQL.stringtype
- unspecified
-
FORCE_IDENTIFIERS_TO_LOWERCASE
N
@@ -466,7 +462,7 @@
PORT_NUMBER
- 5432
+ 4444
PRESERVE_RESERVED_WORD_CASE
@@ -491,18 +487,22 @@
- prerson_registry
- 10.10.31.118
+ metrics
+ metrics-dbhost
POSTGRESQL
Native
- ervu-person-registry
- 5432
- postgres
- Encrypted 2be98afc86aa7f2e4b11ba562feabf7eb
+ metrics-dbname
+ 7777
+ metrics-dbuser
+ Encrypted 657276755ddceddca104c281979414ab64cc9bacc9
+
+ EXTRA_OPTION_POSTGRESQL.stringtype
+ unspecified
+
FORCE_IDENTIFIERS_TO_LOWERCASE
N
@@ -517,7 +517,7 @@
PORT_NUMBER
- 5432
+ 7777
PRESERVE_RESERVED_WORD_CASE
@@ -559,7 +559,7 @@
none
- prerson_registry
+ ervu-person-registry
WITH
main_data AS (
SELECT
@@ -637,7 +637,7 @@ GROUP BY info_age, info_source
none
- business_metrics_connection
+ metrics
init_registration_info
1000
diff --git a/mappings_old/metrics/convert_info_records_from_easu.ktr b/mappings_old/metrics/convert_info_records_from_easu.ktr
index 0e71056..1d929e1 100644
--- a/mappings_old/metrics/convert_info_records_from_easu.ktr
+++ b/mappings_old/metrics/convert_info_records_from_easu.ktr
@@ -435,6 +435,57 @@
+
+ ervu-person-registry
+ person-dbhost
+ POSTGRESQL
+ Native
+ person-dbname
+ 4444
+ person-dbuser
+ Encrypted 2be98afc86aa7f2e4cb79ce10db80b9cf
+
+
+
+
+
+ FORCE_IDENTIFIERS_TO_LOWERCASE
+ N
+
+
+ FORCE_IDENTIFIERS_TO_UPPERCASE
+ N
+
+
+ IS_CLUSTERED
+ N
+
+
+ PORT_NUMBER
+ 4444
+
+
+ PRESERVE_RESERVED_WORD_CASE
+ Y
+
+
+ QUOTE_ALL_FIELDS
+ N
+
+
+ SUPPORTS_BOOLEAN_DATA_TYPE
+ Y
+
+
+ SUPPORTS_TIMESTAMP_DATA_TYPE
+ Y
+
+
+ USE_POOLING
+ N
+
+
+
metrics
metrics-dbhost
@@ -466,58 +517,7 @@
PORT_NUMBER
- 5432
-
-
- PRESERVE_RESERVED_WORD_CASE
- Y
-
-
- QUOTE_ALL_FIELDS
- N
-
-
- SUPPORTS_BOOLEAN_DATA_TYPE
- Y
-
-
- SUPPORTS_TIMESTAMP_DATA_TYPE
- Y
-
-
- USE_POOLING
- N
-
-
-
-
- ervu-person-registry
- person-dbhost
- POSTGRESQL
- Native
- person-dbname
- 4444
- person-dbuser
- Encrypted 2be98afc86aa7f2e4cb79ce10db80b9cf
-
-
-
-
-
- FORCE_IDENTIFIERS_TO_LOWERCASE
- N
-
-
- FORCE_IDENTIFIERS_TO_UPPERCASE
- N
-
-
- IS_CLUSTERED
- N
-
-
- PORT_NUMBER
- 5432
+ 7777
PRESERVE_RESERVED_WORD_CASE
@@ -563,7 +563,6 @@
SELECT
TO_CHAR(NOW() - INTERVAL '1 day', 'YYYY-MM-DD') AS info_date,
'300cee57-2ce7-4b82-847b-bfbe14d6c7ea' AS recruitment_id,
- coalesce(COUNT(hist.id) filter(WHERE res.code in('created','duplicate_updated')), 0) as count_all,
coalesce(COUNT(hist.id) filter(WHERE res.code in('created')), 0) as count_unique,
coalesce(COUNT(hist.id) filter(WHERE res.code in( 'flk_error', 'duplicate_ignored', 'duplicate_already_processed')), 0) as count_flk_and_duplicate
from recruit_association_download_history hist
@@ -625,17 +624,13 @@ join recruit_association_download_result res on hist.recruit_association_downloa
info_date
- count_unique
+ count_completed_record
count_unique
count_flk_and_duplicate
count_flk_and_duplicate
-
- count_all
- count_all
-
diff --git a/mappings_old/metrics/init_registration_from_gir_vu.ktr b/mappings_old/metrics/init_registration_from_gir_vu.ktr
index fe23087..8bc54b1 100644
--- a/mappings_old/metrics/init_registration_from_gir_vu.ktr
+++ b/mappings_old/metrics/init_registration_from_gir_vu.ktr
@@ -436,22 +436,18 @@
- business_metrics_connection
- 10.10.31.119
+ ervu-person-registry
+ person-dbhost
POSTGRESQL
Native
- ervu_business_metrics
- 5432
- ervu_business_metrics
- Encrypted 657276755ddceddca104c281979414ab64cc9bacc9
+ person-dbname
+ 4444
+ person-dbuser
+ Encrypted 2be98afc86aa7f2e4cb79ce10db80b9cf
-
- EXTRA_OPTION_POSTGRESQL.stringtype
- unspecified
-
FORCE_IDENTIFIERS_TO_LOWERCASE
N
@@ -466,7 +462,7 @@
PORT_NUMBER
- 5432
+ 4444
PRESERVE_RESERVED_WORD_CASE
@@ -491,18 +487,22 @@
- prerson_registry
- 10.10.31.118
+ metrics
+ metrics-dbhost
POSTGRESQL
Native
- ervu-person-registry
- 5432
- postgres
- Encrypted 2be98afc86aa7f2e4b11ba562feabf7eb
+ metrics-dbname
+ 7777
+ metrics-dbuser
+ Encrypted 657276755ddceddca104c281979414ab64cc9bacc9
+
+ EXTRA_OPTION_POSTGRESQL.stringtype
+ unspecified
+
FORCE_IDENTIFIERS_TO_LOWERCASE
N
@@ -517,7 +517,7 @@
PORT_NUMBER
- 5432
+ 7777
PRESERVE_RESERVED_WORD_CASE
@@ -559,7 +559,7 @@
none
- prerson_registry
+ ervu-person-registry
SELECT
TO_CHAR(NOW() - INTERVAL '1 day', 'YYYY-MM-DD') AS info_date,
'300cee57-2ce7-4b82-847b-bfbe14d6c7ea' AS recruitment_id,
@@ -616,7 +616,7 @@ JOIN public.decision d ON d.recruit_id = r.id;
none
- business_metrics_connection
+ metrics
init_registration_info
init_registration_from_gir_vu
1000
diff --git a/mappings_old/metrics/records_info_id_uk_id_ern.ktr b/mappings_old/metrics/records_info_id_uk_id_ern.ktr
index ab7b5b5..b94513b 100644
--- a/mappings_old/metrics/records_info_id_uk_id_ern.ktr
+++ b/mappings_old/metrics/records_info_id_uk_id_ern.ktr
@@ -430,7 +430,7 @@
2024/12/10 14:21:53.612
-
2024/12/10 14:21:53.612
-
+ H4sIAAAAAAAAAAMAAAAAAAAAAAA=
N
@@ -462,7 +462,7 @@
PORT_NUMBER
- 5432
+ 4444
PRESERVE_RESERVED_WORD_CASE
@@ -517,7 +517,7 @@
PORT_NUMBER
- 5432
+ 7777
PRESERVE_RESERVED_WORD_CASE
@@ -822,10 +822,6 @@ FROM p18_p_v;
info_age
info_age
-
- count_all
- count_all
-
records_with_id_uk
records_with_id_uk