Skip to content
4 changes: 2 additions & 2 deletions classes/DataWarehouse/Query/Query.php
Original file line number Diff line number Diff line change
Expand Up @@ -743,7 +743,7 @@ public function getQueryString($limit = null, $offset = null, $extraHavingClause
$select_order_by = $this->getSelectOrderBy();

$format = <<<SQL
SELECT STRAIGHT_JOIN%s
SELECT%s
%s
FROM
%s%s
Expand Down Expand Up @@ -784,7 +784,7 @@ public function getCountQueryString()
SELECT
COUNT(*) AS row_count
FROM (
SELECT STRAIGHT_JOIN
SELECT
%s AS total
FROM
%s
Expand Down
2 changes: 1 addition & 1 deletion classes/DataWarehouse/Query/TimeseriesQuery.php
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ public function getQueryString(
}

$format = <<<SQL
SELECT STRAIGHT_JOIN
SELECT
%s
FROM
%s
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,13 +163,13 @@
"indexes": [
{
"name": "index_account",
"columns": [ "account_id" ]
"columns": [ "${AGGREGATION_UNIT}_id", "account_id" ]
},{
"name": "index_person",
"columns": [ "person_id" ]
"columns": [ "${AGGREGATION_UNIT}_id", "person_id" ]
},{
"name": "index_resource",
"columns": [ "host_resource_id" ]
"columns": [ "${AGGREGATION_UNIT}_id", "host_resource_id" ]
},{
"name": "index_period_value",
"columns": [ "${AGGREGATION_UNIT}" ]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -178,13 +178,13 @@
"is_unique": true
},{
"name": "index_account",
"columns": [ "account_id" ]
"columns": [ "${AGGREGATION_UNIT}_id", "account_id" ]
},{
"name": "index_person",
"columns": [ "person_id" ]
"columns": [ "${AGGREGATION_UNIT}_id", "person_id" ]
},{
"name": "index_resource",
"columns": [ "host_resource_id" ]
"columns": [ "${AGGREGATION_UNIT}_id", "host_resource_id" ]
},{
"name": "index_period_value",
"columns": [ "${AGGREGATION_UNIT}" ]
Expand Down
17 changes: 17 additions & 0 deletions configuration/etl/etl_tables.d/jobs/xdw/jobfact_by_.json
Original file line number Diff line number Diff line change
Expand Up @@ -364,102 +364,119 @@
{
"name": "index_account",
"columns": [
"${AGGREGATION_UNIT}_id",
"account_id"
]
},
{
"name": "index_allocation",
"columns": [
"${AGGREGATION_UNIT}_id",
"allocation_id"
]
},
{
"name": "index_fos",
"columns": [
"${AGGREGATION_UNIT}_id",
"fos_id"
]
},
{
"name": "index_job_time_bucket_id",
"columns": [
"${AGGREGATION_UNIT}_id",
"job_time_bucket_id"
]
},
{
"name": "index_job_wait_time_bucket_id",
"columns": [
"${AGGREGATION_UNIT}_id",
"job_wait_time_bucket_id"
]
},
{
"name": "index_node_count",
"columns": [
"${AGGREGATION_UNIT}_id",
"node_count"
]
},
{
"name": "index_resource_organization",
"columns": [
"${AGGREGATION_UNIT}_id",
"resource_organization_id"
]
},
{
"name": "index_person",
"columns": [
"${AGGREGATION_UNIT}_id",
"person_id"
]
},
{
"name": "index_person_nsf_status_code",
"columns": [
"${AGGREGATION_UNIT}_id",
"person_nsfstatuscode_id"
]
},
{
"name": "index_person_organization",
"columns": [
"${AGGREGATION_UNIT}_id",
"person_organization_id"
]
},
{
"name": "index_pi_organization",
"columns": [
"${AGGREGATION_UNIT}_id",
"piperson_organization_id"
]
},
{
"name": "index_pi_person",
"columns": [
"${AGGREGATION_UNIT}_id",
"principalinvestigator_person_id"
]
},
{
"name": "index_processor_count",
"columns": [
"${AGGREGATION_UNIT}_id",
"processor_count"
]
},
{
"name": "index_queue",
"columns": [
"${AGGREGATION_UNIT}_id",
"queue"
]
},
{
"name": "index_resource_type",
"columns": [
"${AGGREGATION_UNIT}_id",
"resourcetype_id"
]
},
{
"name": "index_resource",
"columns": [
"${AGGREGATION_UNIT}_id",
"record_resource_id"
]
},
{
"name": "index_system_account",
"columns": [
"${AGGREGATION_UNIT}_id",
"systemaccount_id"
]
},
Expand Down
17 changes: 17 additions & 0 deletions configuration/etl/etl_tables.d/jobs/xdw/jobfact_by_day.json
Original file line number Diff line number Diff line change
Expand Up @@ -384,54 +384,63 @@
{
"name": "index_account",
"columns": [
"${AGGREGATION_UNIT}_id",
"account_id"
]
},
{
"name": "index_allocation",
"columns": [
"${AGGREGATION_UNIT}_id",
"allocation_id"
]
},
{
"name": "index_fos",
"columns": [
"${AGGREGATION_UNIT}_id",
"fos_id"
]
},
{
"name": "index_job_time_bucket_id",
"columns": [
"${AGGREGATION_UNIT}_id",
"job_time_bucket_id"
]
},
{
"name": "index_job_wait_time_bucket_id",
"columns": [
"${AGGREGATION_UNIT}_id",
"job_wait_time_bucket_id"
]
},
{
"name": "index_node_count",
"columns": [
"${AGGREGATION_UNIT}_id",
"node_count"
]
},
{
"name": "index_resource_organization",
"columns": [
"${AGGREGATION_UNIT}_id",
"resource_organization_id"
]
},
{
"name": "index_person",
"columns": [
"${AGGREGATION_UNIT}_id",
"person_id"
]
},
{
"name": "index_person_nsf_status_code",
"columns": [
"${AGGREGATION_UNIT}_id",
"person_nsfstatuscode_id"
]
},
Expand All @@ -444,48 +453,56 @@
{
"name": "index_person_organization",
"columns": [
"${AGGREGATION_UNIT}_id",
"person_organization_id"
]
},
{
"name": "index_pi_organization",
"columns": [
"${AGGREGATION_UNIT}_id",
"piperson_organization_id"
]
},
{
"name": "index_pi_person",
"columns": [
"${AGGREGATION_UNIT}_id",
"principalinvestigator_person_id"
]
},
{
"name": "index_processor_count",
"columns": [
"${AGGREGATION_UNIT}_id",
"processor_count"
]
},
{
"name": "index_queue",
"columns": [
"${AGGREGATION_UNIT}_id",
"queue"
]
},
{
"name": "index_resource_type",
"columns": [
"${AGGREGATION_UNIT}_id",
"resourcetype_id"
]
},
{
"name": "index_resource",
"columns": [
"${AGGREGATION_UNIT}_id",
"record_resource_id"
]
},
{
"name": "index_system_account",
"columns": [
"${AGGREGATION_UNIT}_id",
"systemaccount_id"
]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@
"indexes": [
{
"name": "index_resource",
"columns": [ "record_resource_id" ]
"columns": [ "${AGGREGATION_UNIT}_id", "record_resource_id" ]
},{
"name": "index_period_value",
"columns": [ "${AGGREGATION_UNIT}" ]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@
"is_unique": true
},{
"name": "index_resource",
"columns": [ "record_resource_id" ]
"columns": [ "${AGGREGATION_UNIT}_id", "record_resource_id" ]
},{
"name": "index_period_value",
"columns": [ "${AGGREGATION_UNIT}" ]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -191,42 +191,49 @@
{
"name": "idx_resource_id",
"columns": [
"${AGGREGATION_UNIT}_id",
"resource_id"
]
},
{
"name": "idx_resourcetype_id",
"columns": [
"${AGGREGATION_UNIT}_id",
"resourcetype_id"
]
},
{
"name": "idx_mountpoint_id",
"columns": [
"${AGGREGATION_UNIT}_id",
"mountpoint_id"
]
},
{
"name": "idx_person_id",
"columns": [
"${AGGREGATION_UNIT}_id",
"person_id"
]
},
{
"name": "idx_principalinvestigator_person_id",
"columns": [
"${AGGREGATION_UNIT}_id",
"principalinvestigator_person_id"
]
},
{
"name": "idx_systemaccount_id",
"columns": [
"${AGGREGATION_UNIT}_id",
"systemaccount_id"
]
},
{
"name": "idx_fos_id",
"columns": [
"${AGGREGATION_UNIT}_id",
"fos_id"
]
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ start,end
2016-12-22,2017-01-01
---------
"GPU Count","CPU Hours: Per Job","Std Dev: CPU Hours: Per Job"
0,11.74476246,0.4533402593311067
0,11.74476246,0.45334025933110605
2,1520.73833333,
---------
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ start,end
2016-12-22,2017-01-01
---------
"GPU Count","CPU Hours: Per Job","Std Dev: CPU Hours: Per Job"
0,11.74476246,0.7927639136921323
0,11.74476246,0.7927639136921318
2,1520.73833333,899.5902978802504
---------
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ start,end
2016-12-22,2017-01-01
---------
"GPU Count","CPU Hours: Per Job","Std Dev: CPU Hours: Per Job"
0,11.74476246,0.7927639136921323
0,11.74476246,0.7927639136921318
2,1520.73833333,899.5902978802504
---------
Loading