Query getting slow when i execute second time--- anybody pls help
here is the query
SELECT FOOD.FOOD_NR, FOOD.FOOD_NAME, MEAL_DISH_FOOD.SERVING_AMT, MEAL_DISH_FOOD.MEASURE_UNIT_NR, MEAL.MEAL_NR,
MEAL.MEAL_TYPE_CODE, MEAL.MEAL_NAME, MEAL.CALORIC_DEFICIT, MEAL.CARB_GRAMS, MEAL.PROTEIN_GRAMS,
MEAL.FAT_GRAMS, DISH.DISH_NR, DISH.DISH_NAME, DISH.INSTRUCTIONS
FROM MEAL, MEAL_DISH_FOOD, FOOD, DISH
WHERE MEAL.MEAL_NR = MEAL_DISH_FOOD.MEAL_NR AND FOOD.FOOD_NR = MEAL_DISH_FOOD.FOOD_NR AND
DISH.DISH_NR = MEAL_DISH_FOOD.DISH_NR AND
MEAL.MEAL_NR IN (SELECT MEAL.MEAL_NR FROM (SELECT MEAL_NR FROM
(SELECT DISTINCT FILTER_SET.MEAL_NR, SUM(VAR) SCOPE, COUNT(FILTER_SET.MEAL_NR) CATCOUNT FROM
(SELECT MEAL_NR, SUM(ABS(CARB_GRAMS - ?)) VAR FROM MEAL WHERE MEAL.MEAL_TYPE_CODE = ?
AND MEAL.DIETARY_RESTRICTION_NR IN (?) AND MEAL.IS_CUSTOM = 'N' AND MEAL.IS_DELETED = 'N' AND
PREPARATION_TYPE_CODE IN (?) AND MEAL.by_person_nr = 0 GROUP BY MEAL_NR
UNION ALL
SELECT MEAL_NR, SUM(ABS(PROTEIN_GRAMS - ?)) VAR FROM MEAL
WHERE MEAL.MEAL_TYPE_CODE = ? AND MEAL.DIETARY_RESTRICTION_NR IN (?) AND
MEAL.IS_CUSTOM = 'N' AND MEAL.IS_DELETED = 'N' AND
PREPARATION_TYPE_CODE IN (?) AND MEAL.by_person_nr = 0 GROUP BY MEAL_NR
UNION ALL
SELECT MEAL_NR, SUM(ABS(FAT_GRAMS - ?)) VAR FROM MEAL
WHERE MEAL.MEAL_TYPE_CODE = ? AND MEAL.DIETARY_RESTRICTION_NR IN (?) AND
MEAL.IS_CUSTOM = 'N' AND MEAL.IS_DELETED = 'N' AND
PREPARATION_TYPE_CODE IN (?) AND MEAL.by_person_nr = 0 GROUP BY MEAL_NR)
FILTER_SET GROUP BY FILTER_SET.MEAL_NR) WHERE CATCOUNT = 3 ORDER BY SCOPE) WEIGHTED_SET, MEAL
WHERE MEAL.MEAL_NR = WEIGHTED_SET.MEAL_NR AND ROWNUM <= ? AND MEAL.by_person_nr = 0)
Regards
Sathish
STATEMENT_ID TIMESTAMP REMARKS OPERATION OPTIONS OBJECT_NODE OBJECT_OWNER OBJECT_NAME OBJECT_INSTANCE OBJECT_TYPE OPTIMIZER SEARCH_COLUMNS ID PARENT_ID POSITION COST CARDINALITY BYTES OTHER_TAG PARTITION_START PARTITION_STOP PARTITION_ID OTHER DISTRIBUTION CPU_COST IO_COST TEMP_SPACE ACCESS_PREDICATES FILTER_PREDICATES
q2 09/08/2005 21:15:05 SELECT STATEMENT CHOOSE 0.00 77.00 77.00 2.00 716.00 77.00
q2 09/08/2005 21:15:05 NESTED LOOPS 1.00 0.00 1.00 77.00 2.00 716.00 77.00
q2 09/08/2005 21:15:05 NESTED LOOPS 2.00 1.00 1.00 73.00 2.00 662.00 73.00
q2 09/08/2005 21:15:05 NESTED LOOPS 3.00 2.00 1.00 71.00 2.00 128.00 71.00
q2 09/08/2005 21:15:05 NESTED LOOPS 4.00 3.00 1.00 68.00 1.00 48.00 68.00
q2 09/08/2005 21:15:05 VIEW SYS VW_NSO_1 5.00 4.00 1.00 62.00 1.00 13.00
q2 09/08/2005 21:15:05 SORT UNIQUE 6.00 5.00 1.00 1.00 21.00
q2 09/08/2005 21:15:05 COUNT STOPKEY 7.00 6.00 1.00 ROWNUM<=5
q2 09/08/2005 21:15:05 NESTED LOOPS 8.00 7.00 1.00 62.00 1.00 21.00 62.00
q2 09/08/2005 21:15:05 VIEW ISHADMIN 5.00 9.00 8.00 1.00 56.00 3.00 39.00
q2 09/08/2005 21:15:05 SORT ORDER BY 10.00 9.00 1.00 56.00 3.00 78.00 56.00
q2 09/08/2005 21:15:05 FILTER 11.00 10.00 1.00 COUNT("FILTER_SET"."MEAL_NR")=3
q2 09/08/2005 21:15:05 SORT GROUP BY 12.00 11.00 1.00 56.00 3.00 78.00 56.00
q2 09/08/2005 21:15:05 VIEW ISHADMIN 7.00 13.00 12.00 1.00 48.00 3.00 78.00
q2 09/08/2005 21:15:05 UNION-ALL 14.00 13.00 1.00
q2 09/08/2005 21:15:05 SORT GROUP BY 15.00 14.00 1.00 16.00 1.00 18.00 16.00
q2 09/08/2005 21:15:05 TABLE ACCESS BY INDEX ROWID ISHADMIN MEAL 8.00 ANALYZED 16.00 15.00 1.00 12.00 1.00 18.00 12.00 "MEAL"."MEAL_TYPE_CODE"='LU' AND "MEAL"."DIETARY_RESTRICTION_NR"=4 AND "MEAL"."IS_CUSTOM"='N' AND "MEAL"."IS_DELETED"='N' AND "MEAL"."PREPARATION_TYPE_CODE"='H'
q2 09/08/2005 21:15:05 INDEX RANGE SCAN ISHADMIN MEAL_QX18 NON-UNIQUE ANALYZED 1.00 17.00 16.00 1.00 3.00 15.00 3.00 "MEAL"."BY_PERSON_NR"=0
q2 09/08/2005 21:15:05 SORT GROUP BY 18.00 14.00 2.00 16.00 1.00 18.00 16.00
q2 09/08/2005 21:15:05 TABLE ACCESS BY INDEX ROWID ISHADMIN MEAL 9.00 ANALYZED 19.00 18.00 1.00 12.00 1.00 18.00 12.00 "MEAL"."MEAL_TYPE_CODE"='LU' AND "MEAL"."DIETARY_RESTRICTION_NR"=4 AND "MEAL"."IS_CUSTOM"='N' AND "MEAL"."IS_DELETED"='N' AND "MEAL"."PREPARATION_TYPE_CODE"='H'
q2 09/08/2005 21:15:05 INDEX RANGE SCAN ISHADMIN MEAL_QX18 NON-UNIQUE ANALYZED 1.00 20.00 19.00 1.00 3.00 15.00 3.00 "MEAL"."BY_PERSON_NR"=0
q2 09/08/2005 21:15:05 SORT GROUP BY 21.00 14.00 3.00 16.00 1.00 18.00 16.00
q2 09/08/2005 21:15:05 TABLE ACCESS BY INDEX ROWID ISHADMIN MEAL 10.00 ANALYZED 22.00 21.00 1.00 12.00 1.00 18.00 12.00 "MEAL"."MEAL_TYPE_CODE"='LU' AND "MEAL"."DIETARY_RESTRICTION_NR"=4 AND "MEAL"."IS_CUSTOM"='N' AND "MEAL"."IS_DELETED"='N' AND "MEAL"."PREPARATION_TYPE_CODE"='H'
q2 09/08/2005 21:15:05 INDEX RANGE SCAN ISHADMIN MEAL_QX18 NON-UNIQUE ANALYZED 1.00 23.00 22.00 1.00 3.00 15.00 3.00 "MEAL"."BY_PERSON_NR"=0
q2 09/08/2005 21:15:05 TABLE ACCESS BY INDEX ROWID ISHADMIN MEAL 11.00 ANALYZED 24.00 8.00 2.00 2.00 1.00 8.00 2.00 "MEAL"."BY_PERSON_NR"=0
q2 09/08/2005 21:15:05 INDEX UNIQUE SCAN ISHADMIN MEAL_PK UNIQUE ANALYZED 1.00 25.00 24.00 1.00 1.00 9,832.00 1.00 "MEAL"."MEAL_NR"="WEIGHTED_SET"."MEAL_NR"
q2 09/08/2005 21:15:05 TABLE ACCESS BY INDEX ROWID ISHADMIN MEAL 1.00 ANALYZED 26.00 4.00 2.00 2.00 1.00 35.00 2.00
q2 09/08/2005 21:15:05 INDEX UNIQUE SCAN ISHADMIN MEAL_PK UNIQUE ANALYZED 1.00 27.00 26.00 1.00 1.00 1.00 1.00 "MEAL"."MEAL_NR"="VW_NSO_1"."$nso_col_1"
q2 09/08/2005 21:15:05 TABLE ACCESS BY INDEX ROWID ISHADMIN MEAL_DISH_FOOD 2.00 ANALYZED 28.00 3.00 2.00 3.00 2.00 32.00 3.00
q2 09/08/2005 21:15:05 INDEX RANGE SCAN ISHADMIN MEAL_DISH_FOOD_QX124 NON-UNIQUE ANALYZED 1.00 29.00 28.00 1.00 2.00 4.00 2.00 "MEAL"."MEAL_NR"="MEAL_DISH_FOOD"."MEAL_NR"
q2 09/08/2005 21:15:05 TABLE ACCESS BY INDEX ROWID ISHADMIN DISH 4.00 ANALYZED 30.00 2.00 2.00 1.00 1.00 267.00 1.00
q2 09/08/2005 21:15:05 INDEX UNIQUE SCAN ISHADMIN DISH_PK UNIQUE ANALYZED 1.00 31.00 30.00 1.00 1.00 "DISH"."DISH_NR"="MEAL_DISH_FOOD"."DISH_NR"
q2 09/08/2005 21:15:05 TABLE ACCESS BY INDEX ROWID ISHADMIN FOOD 3.00 ANALYZED 32.00 1.00 2.00 2.00 1.00 27.00 2.00
q2 09/08/2005 21:15:05 INDEX UNIQUE SCAN ISHADMIN FOOD_PK UNIQUE ANALYZED 1.00 33.00 32.00 1.00 1.00 1.00 1.00 "FOOD"."FOOD_NR"="MEAL_DISH_FOOD"."FOOD_NR"
q2 09/11/2005 21:23:49 SELECT STATEMENT CHOOSE 0.00 77.00 77.00 2.00 716.00 77.00
q2 09/11/2005 21:23:49 NESTED LOOPS 1.00 0.00 1.00 77.00 2.00 716.00 77.00
q2 09/11/2005 21:23:49 NESTED LOOPS 2.00 1.00 1.00 73.00 2.00 662.00 73.00
q2 09/11/2005 21:23:49 NESTED LOOPS 3.00 2.00 1.00 71.00 2.00 128.00 71.00
q2 09/11/2005 21:23:49 NESTED LOOPS 4.00 3.00 1.00 68.00 1.00 48.00 68.00
q2 09/11/2005 21:23:49 VIEW SYS VW_NSO_1 5.00 4.00 1.00 62.00 1.00 13.00
q2 09/11/2005 21:23:49 SORT UNIQUE 6.00 5.00 1.00 1.00 21.00
q2 09/11/2005 21:23:49 COUNT STOPKEY 7.00 6.00 1.00 ROWNUM<=5
q2 09/11/2005 21:23:49 NESTED LOOPS 8.00 7.00 1.00 62.00 1.00 21.00 62.00
q2 09/11/2005 21:23:49 VIEW ISHADMIN 5.00 9.00 8.00 1.00 56.00 3.00 39.00
q2 09/11/2005 21:23:49 SORT ORDER BY 10.00 9.00 1.00 56.00 3.00 78.00 56.00
q2 09/11/2005 21:23:49 FILTER 11.00 10.00 1.00 COUNT("FILTER_SET"."MEAL_NR")=3
q2 09/11/2005 21:23:49 SORT GROUP BY 12.00 11.00 1.00 56.00 3.00 78.00 56.00
q2 09/11/2005 21:23:49 VIEW ISHADMIN 7.00 13.00 12.00 1.00 48.00 3.00 78.00
q2 09/11/2005 21:23:49 UNION-ALL 14.00 13.00 1.00
q2 09/11/2005 21:23:49 SORT GROUP BY 15.00 14.00 1.00 16.00 1.00 18.00 16.00
q2 09/11/2005 21:23:49 TABLE ACCESS BY INDEX ROWID ISHADMIN MEAL 8.00 ANALYZED 16.00 15.00 1.00 12.00 1.00 18.00 12.00 "MEAL"."MEAL_TYPE_CODE"='LU' AND "MEAL"."DIETARY_RESTRICTION_NR"=4 AND "MEAL"."IS_CUSTOM"='N' AND "MEAL"."IS_DELETED"='N' AND "MEAL"."PREPARATION_TYPE_CODE"='H'
q2 09/11/2005 21:23:49 INDEX RANGE SCAN ISHADMIN MEAL_QX18 NON-UNIQUE ANALYZED 1.00 17.00 16.00 1.00 3.00 15.00 3.00 "MEAL"."BY_PERSON_NR"=0
q2 09/11/2005 21:23:49 SORT GROUP BY 18.00 14.00 2.00 16.00 1.00 18.00 16.00
q2 09/11/2005 21:23:49 TABLE ACCESS BY INDEX ROWID ISHADMIN MEAL 9.00 ANALYZED 19.00 18.00 1.00 12.00 1.00 18.00 12.00 "MEAL"."MEAL_TYPE_CODE"='LU' AND "MEAL"."DIETARY_RESTRICTION_NR"=4 AND "MEAL"."IS_CUSTOM"='N' AND "MEAL"."IS_DELETED"='N' AND "MEAL"."PREPARATION_TYPE_CODE"='H'
q2 09/11/2005 21:23:49 INDEX RANGE SCAN ISHADMIN MEAL_QX18 NON-UNIQUE ANALYZED 1.00 20.00 19.00 1.00 3.00 15.00 3.00 "MEAL"."BY_PERSON_NR"=0
q2 09/11/2005 21:23:49 SORT GROUP BY 21.00 14.00 3.00 16.00 1.00 18.00 16.00
q2 09/11/2005 21:23:49 TABLE ACCESS BY INDEX ROWID ISHADMIN MEAL 10.00 ANALYZED 22.00 21.00 1.00 12.00 1.00 18.00 12.00 "MEAL"."MEAL_TYPE_CODE"='LU' AND "MEAL"."DIETARY_RESTRICTION_NR"=4 AND "MEAL"."IS_CUSTOM"='N' AND "MEAL"."IS_DELETED"='N' AND "MEAL"."PREPARATION_TYPE_CODE"='H'
q2 09/11/2005 21:23:49 INDEX RANGE SCAN ISHADMIN MEAL_QX18 NON-UNIQUE ANALYZED 1.00 23.00 22.00 1.00 3.00 15.00 3.00 "MEAL"."BY_PERSON_NR"=0
q2 09/11/2005 21:23:49 TABLE ACCESS BY INDEX ROWID ISHADMIN MEAL 11.00 ANALYZED 24.00 8.00 2.00 2.00 1.00 8.00 2.00 "MEAL"."BY_PERSON_NR"=0
q2 09/11/2005 21:23:49 INDEX UNIQUE SCAN ISHADMIN MEAL_PK UNIQUE ANALYZED 1.00 25.00 24.00 1.00 1.00 9,832.00 1.00 "MEAL"."MEAL_NR"="WEIGHTED_SET"."MEAL_NR"
q2 09/11/2005 21:23:49 TABLE ACCESS BY INDEX ROWID ISHADMIN MEAL 1.00 ANALYZED 26.00 4.00 2.00 2.00 1.00 35.00 2.00
q2 09/11/2005 21:23:49 INDEX UNIQUE SCAN ISHADMIN MEAL_PK UNIQUE ANALYZED 1.00 27.00 26.00 1.00 1.00 1.00 1.00 "MEAL"."MEAL_NR"="VW_NSO_1"."$nso_col_1"
q2 09/11/2005 21:23:49 TABLE ACCESS BY INDEX ROWID ISHADMIN MEAL_DISH_FOOD 2.00 ANALYZED 28.00 3.00 2.00 3.00 2.00 32.00 3.00
q2 09/11/2005 21:23:49 INDEX RANGE SCAN ISHADMIN MEAL_DISH_FOOD_QX124 NON-UNIQUE ANALYZED 1.00 29.00 28.00 1.00 2.00 4.00 2.00 "MEAL"."MEAL_NR"="MEAL_DISH_FOOD"."MEAL_NR"
q2 09/11/2005 21:23:49 TABLE ACCESS BY INDEX ROWID ISHADMIN DISH 4.00 ANALYZED 30.00 2.00 2.00 1.00 1.00 267.00 1.00
q2 09/11/2005 21:23:49 INDEX UNIQUE SCAN ISHADMIN DISH_PK UNIQUE ANALYZED 1.00 31.00 30.00 1.00 1.00 "DISH"."DISH_NR"="MEAL_DISH_FOOD"."DISH_NR"
q2 09/11/2005 21:23:49 TABLE ACCESS BY INDEX ROWID ISHADMIN FOOD 3.00 ANALYZED 32.00 1.00 2.00 2.00 1.00 27.00 2.00
q2 09/11/2005 21:23:49 INDEX UNIQUE SCAN ISHADMIN FOOD_PK UNIQUE ANALYZED 1.00 33.00 32.00 1.00 1.00 1.00 1.00 "FOOD"."FOOD_NR"="MEAL_DISH_FOOD"."FOOD_NR"
q2 09/11/2005 21:21:46 SELECT STATEMENT CHOOSE 0.00 77.00 77.00 2.00 716.00 77.00
q2 09/11/2005 21:21:46 NESTED LOOPS 1.00 0.00 1.00 77.00 2.00 716.00 77.00
q2 09/11/2005 21:21:46 NESTED LOOPS 2.00 1.00 1.00 73.00 2.00 662.00 73.00
q2 09/11/2005 21:21:46 NESTED LOOPS 3.00 2.00 1.00 71.00 2.00 128.00 71.00
q2 09/11/2005 21:21:46 NESTED LOOPS 4.00 3.00 1.00 68.00 1.00 48.00 68.00
q2 09/11/2005 21:21:46 VIEW SYS VW_NSO_1 5.00 4.00 1.00 62.00 1.00 13.00
q2 09/11/2005 21:21:46 SORT UNIQUE 6.00 5.00 1.00 1.00 21.00
q2 09/11/2005 21:21:46 COUNT STOPKEY 7.00 6.00 1.00 ROWNUM<=5
q2 09/11/2005 21:21:46 NESTED LOOPS 8.00 7.00 1.00 62.00 1.00 21.00 62.00
q2 09/11/2005 21:21:46 VIEW ISHADMIN 5.00 9.00 8.00 1.00 56.00 3.00 39.00
q2 09/11/2005 21:21:46 SORT ORDER BY 10.00 9.00 1.00 56.00 3.00 78.00 56.00
q2 09/11/2005 21:21:46 FILTER 11.00 10.00 1.00 COUNT("FILTER_SET"."MEAL_NR")=3
q2 09/11/2005 21:21:46 SORT GROUP BY 12.00 11.00 1.00 56.00 3.00 78.00 56.00
q2 09/11/2005 21:21:46 VIEW ISHADMIN 7.00 13.00 12.00 1.00 48.00 3.00 78.00
q2 09/11/2005 21:21:46 UNION-ALL 14.00 13.00 1.00
q2 09/11/2005 21:21:46 SORT GROUP BY 15.00 14.00 1.00 16.00 1.00 18.00 16.00
q2 09/11/2005 21:21:46 TABLE ACCESS BY INDEX ROWID ISHADMIN MEAL 8.00 ANALYZED 16.00 15.00 1.00 12.00 1.00 18.00 12.00 "MEAL"."MEAL_TYPE_CODE"='LU' AND "MEAL"."DIETARY_RESTRICTION_NR"=4 AND "MEAL"."IS_CUSTOM"='N' AND "MEAL"."IS_DELETED"='N' AND "MEAL"."PREPARATION_TYPE_CODE"='H'
q2 09/11/2005 21:21:46 INDEX RANGE SCAN ISHADMIN MEAL_QX18 NON-UNIQUE ANALYZED 1.00 17.00 16.00 1.00 3.00 15.00 3.00 "MEAL"."BY_PERSON_NR"=0
q2 09/11/2005 21:21:46 SORT GROUP BY 18.00 14.00 2.00 16.00 1.00 18.00 16.00
q2 09/11/2005 21:21:46 TABLE ACCESS BY INDEX ROWID ISHADMIN MEAL 9.00 ANALYZED 19.00 18.00 1.00 12.00 1.00 18.00 12.00 "MEAL"."MEAL_TYPE_CODE"='LU' AND "MEAL"."DIETARY_RESTRICTION_NR"=4 AND "MEAL"."IS_CUSTOM"='N' AND "MEAL"."IS_DELETED"='N' AND "MEAL"."PREPARATION_TYPE_CODE"='H'
q2 09/11/2005 21:21:46 INDEX RANGE SCAN ISHADMIN MEAL_QX18 NON-UNIQUE ANALYZED 1.00 20.00 19.00 1.00 3.00 15.00 3.00 "MEAL"."BY_PERSON_NR"=0
q2 09/11/2005 21:21:46 SORT GROUP BY 21.00 14.00 3.00 16.00 1.00 18.00 16.00
q2 09/11/2005 21:21:46 TABLE ACCESS BY INDEX ROWID ISHADMIN MEAL 10.00 ANALYZED 22.00 21.00 1.00 12.00 1.00 18.00 12.00 "MEAL"."MEAL_TYPE_CODE"='LU' AND "MEAL"."DIETARY_RESTRICTION_NR"=4 AND "MEAL"."IS_CUSTOM"='N' AND "MEAL"."IS_DELETED"='N' AND "MEAL"."PREPARATION_TYPE_CODE"='H'
q2 09/11/2005 21:21:46 INDEX RANGE SCAN ISHADMIN MEAL_QX18 NON-UNIQUE ANALYZED 1.00 23.00 22.00 1.00 3.00 15.00 3.00 "MEAL"."BY_PERSON_NR"=0
q2 09/11/2005 21:21:46 TABLE ACCESS BY INDEX ROWID ISHADMIN MEAL 11.00 ANALYZED 24.00 8.00 2.00 2.00 1.00 8.00 2.00 "MEAL"."BY_PERSON_NR"=0
q2 09/11/2005 21:21:46 INDEX UNIQUE SCAN ISHADMIN MEAL_PK UNIQUE ANALYZED 1.00 25.00 24.00 1.00 1.00 9,832.00 1.00 "MEAL"."MEAL_NR"="WEIGHTED_SET"."MEAL_NR"
q2 09/11/2005 21:21:46 TABLE ACCESS BY INDEX ROWID ISHADMIN MEAL 1.00 ANALYZED 26.00 4.00 2.00 2.00 1.00 35.00 2.00
q2 09/11/2005 21:21:46 INDEX UNIQUE SCAN ISHADMIN MEAL_PK UNIQUE ANALYZED 1.00 27.00 26.00 1.00 1.00 1.00 1.00 "MEAL"."MEAL_NR"="VW_NSO_1"."$nso_col_1"
q2 09/11/2005 21:21:46 TABLE ACCESS BY INDEX ROWID ISHADMIN MEAL_DISH_FOOD 2.00 ANALYZED 28.00 3.00 2.00 3.00 2.00 32.00 3.00
q2 09/11/2005 21:21:46 INDEX RANGE SCAN ISHADMIN MEAL_DISH_FOOD_QX124 NON-UNIQUE ANALYZED 1.00 29.00 28.00 1.00 2.00 4.00 2.00 "MEAL"."MEAL_NR"="MEAL_DISH_FOOD"."MEAL_NR"
q2 09/11/2005 21:21:46 TABLE ACCESS BY INDEX ROWID ISHADMIN DISH 4.00 ANALYZED 30.00 2.00 2.00 1.00 1.00 267.00 1.00
q2 09/11/2005 21:21:46 INDEX UNIQUE SCAN ISHADMIN DISH_PK UNIQUE ANALYZED 1.00 31.00 30.00 1.00 1.00 "DISH"."DISH_NR"="MEAL_DISH_FOOD"."DISH_NR"
q2 09/11/2005 21:21:46 TABLE ACCESS BY INDEX ROWID ISHADMIN FOOD 3.00 ANALYZED 32.00 1.00 2.00 2.00 1.00 27.00 2.00
q2 09/11/2005 21:21:46 INDEX UNIQUE SCAN ISHADMIN FOOD_PK UNIQUE ANALYZED 1.00 33.00 32.00 1.00 1.00 1.00 1.00 "FOOD"."FOOD_NR"="MEAL_DISH_FOOD"."FOOD_NR"
q2 09/11/2005 21:23:02 SELECT STATEMENT CHOOSE 0.00 77.00 77.00 2.00 716.00 77.00
q2 09/11/2005 21:23:02 NESTED LOOPS 1.00 0.00 1.00 77.00 2.00 716.00 77.00
q2 09/11/2005 21:23:02 NESTED LOOPS 2.00 1.00 1.00 73.00 2.00 662.00 73.00
q2 09/11/2005 21:23:02 NESTED LOOPS 3.00 2.00 1.00 71.00 2.00 128.00 71.00
q2 09/11/2005 21:23:02 NESTED LOOPS 4.00 3.00 1.00 68.00 1.00 48.00 68.00
q2 09/11/2005 21:23:02 VIEW SYS VW_NSO_1 5.00 4.00 1.00 62.00 1.00 13.00
q2 09/11/2005 21:23:02 SORT UNIQUE 6.00 5.00 1.00 1.00 21.00
q2 09/11/2005 21:23:02 COUNT STOPKEY 7.00 6.00 1.00 ROWNUM<=5
q2 09/11/2005 21:23:02 NESTED LOOPS 8.00 7.00 1.00 62.00 1.00 21.00 62.00
q2 09/11/2005 21:23:02 VIEW ISHADMIN 5.00 9.00 8.00 1.00 56.00 3.00 39.00
q2 09/11/2005 21:23:02 SORT ORDER BY 10.00 9.00 1.00 56.00 3.00 78.00 56.00
q2 09/11/2005 21:23:02 FILTER 11.00 10.00 1.00 COUNT("FILTER_SET"."MEAL_NR")=3
q2 09/11/2005 21:23:02 SORT GROUP BY 12.00 11.00 1.00 56.00 3.00 78.00 56.00
q2 09/11/2005 21:23:02 VIEW ISHADMIN 7.00 13.00 12.00 1.00 48.00 3.00 78.00
q2 09/11/2005 21:23:02 UNION-ALL 14.00 13.00 1.00
q2 09/11/2005 21:23:02 SORT GROUP BY 15.00 14.00 1.00 16.00 1.00 18.00 16.00
q2 09/11/2005 21:23:02 TABLE ACCESS BY INDEX ROWID ISHADMIN MEAL 8.00 ANALYZED 16.00 15.00 1.00 12.00 1.00 18.00 12.00 "MEAL"."MEAL_TYPE_CODE"='LU' AND "MEAL"."DIETARY_RESTRICTION_NR"=4 AND "MEAL"."IS_CUSTOM"='N' AND "MEAL"."IS_DELETED"='N' AND "MEAL"."PREPARATION_TYPE_CODE"='H'
q2 09/11/2005 21:23:02 INDEX RANGE SCAN ISHADMIN MEAL_QX18 NON-UNIQUE ANALYZED 1.00 17.00 16.00 1.00 3.00 15.00 3.00 "MEAL"."BY_PERSON_NR"=0
q2 09/11/2005 21:23:02 SORT GROUP BY 18.00 14.00 2.00 16.00 1.00 18.00 16.00
q2 09/11/2005 21:23:02 TABLE ACCESS BY INDEX ROWID ISHADMIN MEAL 9.00 ANALYZED 19.00 18.00 1.00 12.00 1.00 18.00 12.00 "MEAL"."MEAL_TYPE_CODE"='LU' AND "MEAL"."DIETARY_RESTRICTION_NR"=4 AND "MEAL"."IS_CUSTOM"='N' AND "MEAL"."IS_DELETED"='N' AND "MEAL"."PREPARATION_TYPE_CODE"='H'
q2 09/11/2005 21:23:02 INDEX RANGE SCAN ISHADMIN MEAL_QX18 NON-UNIQUE ANALYZED 1.00 20.00 19.00 1.00 3.00 15.00 3.00 "MEAL"."BY_PERSON_NR"=0
q2 09/11/2005 21:23:02 SORT GROUP BY 21.00 14.00 3.00 16.00 1.00 18.00 16.00
q2 09/11/2005 21:23:02 TABLE ACCESS BY INDEX ROWID ISHADMIN MEAL 10.00 ANALYZED 22.00 21.00 1.00 12.00 1.00 18.00 12.00 "MEAL"."MEAL_TYPE_CODE"='LU' AND "MEAL"."DIETARY_RESTRICTION_NR"=4 AND "MEAL"."IS_CUSTOM"='N' AND "MEAL"."IS_DELETED"='N' AND "MEAL"."PREPARATION_TYPE_CODE"='H'
q2 09/11/2005 21:23:02 INDEX RANGE SCAN ISHADMIN MEAL_QX18 NON-UNIQUE ANALYZED 1.00 23.00 22.00 1.00 3.00 15.00 3.00 "MEAL"."BY_PERSON_NR"=0
q2 09/11/2005 21:23:02 TABLE ACCESS BY INDEX ROWID ISHADMIN MEAL 11.00 ANALYZED 24.00 8.00 2.00 2.00 1.00 8.00 2.00 "MEAL"."BY_PERSON_NR"=0
q2 09/11/2005 21:23:02 INDEX UNIQUE SCAN ISHADMIN MEAL_PK UNIQUE ANALYZED 1.00 25.00 24.00 1.00 1.00 9,832.00 1.00 "MEAL"."MEAL_NR"="WEIGHTED_SET"."MEAL_NR"
q2 09/11/2005 21:23:02 TABLE ACCESS BY INDEX ROWID ISHADMIN MEAL 1.00 ANALYZED 26.00 4.00 2.00 2.00 1.00 35.00 2.00
q2 09/11/2005 21:23:02 INDEX UNIQUE SCAN ISHADMIN MEAL_PK UNIQUE ANALYZED 1.00 27.00 26.00 1.00 1.00 1.00 1.00 "MEAL"."MEAL_NR"="VW_NSO_1"."$nso_col_1"
q2 09/11/2005 21:23:02 TABLE ACCESS BY INDEX ROWID ISHADMIN MEAL_DISH_FOOD 2.00 ANALYZED 28.00 3.00 2.00 3.00 2.00 32.00 3.00
q2 09/11/2005 21:23:02 INDEX RANGE SCAN ISHADMIN MEAL_DISH_FOOD_QX124 NON-UNIQUE ANALYZED 1.00 29.00 28.00 1.00 2.00 4.00 2.00 "MEAL"."MEAL_NR"="MEAL_DISH_FOOD"."MEAL_NR"
q2 09/11/2005 21:23:02 TABLE ACCESS BY INDEX ROWID ISHADMIN DISH 4.00 ANALYZED 30.00 2.00 2.00 1.00 1.00 267.00 1.00
q2 09/11/2005 21:23:02 INDEX UNIQUE SCAN ISHADMIN DISH_PK UNIQUE ANALYZED 1.00 31.00 30.00 1.00 1.00 "DISH"."DISH_NR"="MEAL_DISH_FOOD"."DISH_NR"
q1 09/05/2005 23:27:29 SELECT STATEMENT CHOOSE 0.00 77.00 77.00 2.00 716.00 77.00
q1 09/05/2005 23:27:29 NESTED LOOPS 1.00 0.00 1.00 77.00 2.00 716.00 77.00
q1 09/05/2005 23:27:29 NESTED LOOPS 2.00 1.00 1.00 73.00 2.00 662.00 73.00
q1 09/05/2005 23:27:29 NESTED LOOPS 3.00 2.00 1.00 71.00 2.00 128.00 71.00
q1 09/05/2005 23:27:29 NESTED LOOPS 4.00 3.00 1.00 68.00 1.00 48.00 68.00
q1 09/05/2005 23:27:29 VIEW SYS VW_NSO_1 5.00 4.00 1.00 62.00 1.00 13.00
q1 09/05/2005 23:27:29 SORT UNIQUE 6.00 5.00 1.00 1.00 21.00
q1 09/05/2005 23:27:29 COUNT STOPKEY 7.00 6.00 1.00 ROWNUM<=5
q1 09/05/2005 23:27:29 NESTED LOOPS 8.00 7.00 1.00 62.00 1.00 21.00 62.00
q1 09/05/2005 23:27:29 VIEW ISHADMIN 5.00 9.00 8.00 1.00 56.00 3.00 39.00
q1 09/05/2005 23:27:29 SORT ORDER BY 10.00 9.00 1.00 56.00 3.00 78.00 56.00
q1 09/05/2005 23:27:29 FILTER 11.00 10.00 1.00 COUNT("FILTER_SET"."MEAL_NR")=3
q1 09/05/2005 23:27:29 SORT GROUP BY 12.00 11.00 1.00 56.00 3.00 78.00 56.00
q1 09/05/2005 23:27:29 VIEW ISHADMIN 7.00 13.00 12.00 1.00 48.00 3.00 78.00
q1 09/05/2005 23:27:29 UNION-ALL 14.00 13.00 1.00
q1 09/05/2005 23:27:29 SORT GROUP BY 15.00 14.00 1.00 16.00 1.00 18.00 16.00
q1 09/05/2005 23:27:29 TABLE ACCESS BY INDEX ROWID ISHADMIN MEAL 8.00 ANALYZED 16.00 15.00 1.00 12.00 1.00 18.00 12.00 "MEAL"."MEAL_TYPE_CODE"='LU' AND "MEAL"."DIETARY_RESTRICTION_NR"=4 AND "MEAL"."IS_CUSTOM"='N' AND "MEAL"."IS_DELETED"='N' AND "MEAL"."PREPARATION_TYPE_CODE"='H'
q1 09/05/2005 23:27:29 INDEX RANGE SCAN ISHADMIN MEAL_QX18 NON-UNIQUE ANALYZED 1.00 17.00 16.00 1.00 3.00 15.00 3.00 "MEAL"."BY_PERSON_NR"=0
q1 09/05/2005 23:27:29 SORT GROUP BY 18.00 14.00 2.00 16.00 1.00 18.00 16.00
q1 09/05/2005 23:27:29 TABLE ACCESS BY INDEX ROWID ISHADMIN MEAL 9.00 ANALYZED 19.00 18.00 1.00 12.00 1.00 18.00 12.00 "MEAL"."MEAL_TYPE_CODE"='LU' AND "MEAL"."DIETARY_RESTRICTION_NR"=4 AND "MEAL"."IS_CUSTOM"='N' AND "MEAL"."IS_DELETED"='N' AND "MEAL"."PREPARATION_TYPE_CODE"='H'
q1 09/05/2005 23:27:29 INDEX RANGE SCAN ISHADMIN MEAL_QX18 NON-UNIQUE ANALYZED 1.00 20.00 19.00 1.00 3.00 15.00 3.00 "MEAL"."BY_PERSON_NR"=0
q1 09/05/2005 23:27:29 SORT GROUP BY 21.00 14.00 3.00 16.00 1.00 18.00 16.00
q1 09/05/2005 23:27:29 TABLE ACCESS BY INDEX ROWID ISHADMIN MEAL 10.00 ANALYZED 22.00 21.00 1.00 12.00 1.00 18.00 12.00 "MEAL"."MEAL_TYPE_CODE"='LU' AND "MEAL"."DIETARY_RESTRICTION_NR"=4 AND "MEAL"."IS_CUSTOM"='N' AND "MEAL"."IS_DELETED"='N' AND "MEAL"."PREPARATION_TYPE_CODE"='H'
q1 09/05/2005 23:27:29 INDEX RANGE SCAN ISHADMIN MEAL_QX18 NON-UNIQUE ANALYZED 1.00 23.00 22.00 1.00 3.00 15.00 3.00 "MEAL"."BY_PERSON_NR"=0
q1 09/05/2005 23:27:29 TABLE ACCESS BY INDEX ROWID ISHADMIN MEAL 11.00 ANALYZED 24.00 8.00 2.00 2.00 1.00 8.00 2.00 "MEAL"."BY_PERSON_NR"=0
q1 09/05/2005 23:27:29 INDEX UNIQUE SCAN ISHADMIN MEAL_PK UNIQUE ANALYZED 1.00 25.00 24.00 1.00 1.00 9,832.00 1.00 "MEAL"."MEAL_NR"="WEIGHTED_SET"."MEAL_NR"
q1 09/05/2005 23:27:29 TABLE ACCESS BY INDEX ROWID ISHADMIN MEAL 1.00 ANALYZED 26.00 4.00 2.00 2.00 1.00 35.00 2.00
q1 09/05/2005 23:27:29 INDEX UNIQUE SCAN ISHADMIN MEAL_PK UNIQUE ANALYZED 1.00 27.00 26.00 1.00 1.00 1.00 1.00 "MEAL"."MEAL_NR"="VW_NSO_1"."$nso_col_1"
q1 09/05/2005 23:27:29 TABLE ACCESS BY INDEX ROWID ISHADMIN MEAL_DISH_FOOD 2.00 ANALYZED 28.00 3.00 2.00 3.00 2.00 32.00 3.00
q1 09/05/2005 23:27:29 INDEX RANGE SCAN ISHADMIN MEAL_DISH_FOOD_QX124 NON-UNIQUE ANALYZED 1.00 29.00 28.00 1.00 2.00 4.00 2.00 "MEAL"."MEAL_NR"="MEAL_DISH_FOOD"."MEAL_NR"
q1 09/05/2005 23:27:29 TABLE ACCESS BY INDEX ROWID ISHADMIN DISH 4.00 ANALYZED 30.00 2.00 2.00 1.00 1.00 267.00 1.00
q1 09/05/2005 23:27:29 INDEX UNIQUE SCAN ISHADMIN DISH_PK UNIQUE ANALYZED 1.00 31.00 30.00 1.00 1.00 "DISH"."DISH_NR"="MEAL_DISH_FOOD"."DISH_NR"
q1 09/05/2005 23:27:29 TABLE ACCESS BY INDEX ROWID ISHADMIN FOOD 3.00 ANALYZED 32.00 1.00 2.00 2.00 1.00 27.00
Similar Messages
-
i got macbook pro 13" i bought in 2011 but its now getting slow when i start up or when shutting down .and apps takes time to open like just bouncing????????
See the Mac OS X Speed FAQ.
-
Query runs slower when using variables & faster when using hard coded value
Hi,
My query runs slower when i use variables but it runs faster when i use hard coded values. Why it is behaving like this ?
My query is in cursor definition in a procedure. Procedure runs faster when using hard coded valus and slower when using variables.
Can anybody help me out there?
Thanks in advance.Hi,
Thanks for ur reply.
here is my code with Variables:
Procedure populateCountryTrafficDetails(pWeekStartDate IN Date , pCountry IN d_geography.country_code%TYPE) is
startdate date;
AR_OrgId number(10);
Cursor cTraffic is
Select
l.actual_date, nvl(o.city||o.zipcode,'Undefined') Site,
g.country_code,d.customer_name, d.customer_number,t.contrno bcn,
nvl(r.dest_level3,'Undefined'),
Decode(p.Product_code,'820','821','821','821','801') Product_Code ,
Decode(p.Product_code,'820','Colt Voice Connect','821','Colt Voice Connect','Colt Voice Line') DProduct,
sum(f.duration),
sum(f.debamount_eur)
from d_calendar_date l,
d_geography g,
d_customer d, d_contract t, d_subscriber s,
d_retail_dest r, d_product p,
CPS_ORDER_DETAILS o,
f_retail_revenue f
where
l.date_key = f.call_date_key and
g.geography_key = f.geography_key and
r.dest_key = f.dest_key and
p.product_key = f.product_key and
--c.customer_key = f.customer_key and
d.customer_key = f.customer_key and
t.contract_key = f.contract_key and
s.SUBSCRIBER_KEY = f.SUBSCRIBER_KEY and
o.org_id(+) = AR_OrgId and
g.country_code = pCountry and
l.actual_date >= startdate and
l.actual_date <= (startdate + 90) and
o.cli(+) = s.area_subno and
p.product_code in ('800','801','802','804','820','821')
group by
l.actual_date,
o.city||o.zipcode, g.country_code,d.customer_name, d.customer_number,t.contrno,r.dest_level3, p.product_code;
Type CountryTabType is Table of country_traffic_details.Country%Type index by BINARY_INTEGER;
Type CallDateTabType is Table of country_traffic_details.CALL_DATE%Type index by BINARY_INTEGER;
Type CustomerNameTabType is Table of Country_traffic_details.Customer_name%Type index by BINARY_INTEGER;
Type CustomerNumberTabType is Table of Country_traffic_details.Customer_number%Type index by BINARY_INTEGER;
Type BcnTabType is Table of Country_traffic_details.Bcn%Type index by BINARY_INTEGER;
Type DestinationTypeTabType is Table of Country_traffic_details.DESTINATION_TYPE%Type index by BINARY_INTEGER;
Type ProductCodeTabType is Table of Country_traffic_details.Product_Code%Type index by BINARY_INTEGER;
Type ProductTabType is Table of Country_traffic_details.Product%Type index by BINARY_INTEGER;
Type DurationTabType is Table of Country_traffic_details.Duration%Type index by BINARY_INTEGER;
Type DebamounteurTabType is Table of Country_traffic_details.DEBAMOUNTEUR%Type index by BINARY_INTEGER;
Type SiteTabType is Table of Country_traffic_details.Site%Type index by BINARY_INTEGER;
CountryArr CountryTabType;
CallDateArr CallDateTabType;
Customer_NameArr CustomerNameTabType;
CustomerNumberArr CustomerNumberTabType;
BCNArr BCNTabType;
DESTINATION_TYPEArr DESTINATIONTYPETabType;
PRODUCT_CODEArr PRODUCTCODETabType;
PRODUCTArr PRODUCTTabType;
DurationArr DurationTabType;
DebamounteurArr DebamounteurTabType;
SiteArr SiteTabType;
Begin
startdate := (trunc(pWeekStartDate) + 6) - 90;
Exe_Pos := 1;
Execute Immediate 'Truncate table country_traffic_details';
dropIndexes('country_traffic_details');
Exe_Pos := 2;
/* Set org ID's as per AR */
case (pCountry)
when 'FR' then AR_OrgId := 81;
when 'AT' then AR_OrgId := 125;
when 'CH' then AR_OrgId := 126;
when 'DE' then AR_OrgId := 127;
when 'ES' then AR_OrgId := 123;
when 'IT' then AR_OrgId := 122;
when 'PT' then AR_OrgId := 124;
when 'BE' then AR_OrgId := 132;
when 'IE' then AR_OrgId := 128;
when 'DK' then AR_OrgId := 133;
when 'NL' then AR_OrgId := 129;
when 'SE' then AR_OrgId := 130;
when 'UK' then AR_OrgId := 131;
else raise_application_error (-20003, 'No such Country Code Exists.');
end case;
Exe_Pos := 3;
dbms_output.put_line('3: '||to_char(sysdate, 'HH24:MI:SS'));
populateOrderDetails(AR_OrgId);
dbms_output.put_line('4: '||to_char(sysdate, 'HH24:MI:SS'));
Exe_Pos := 4;
Open cTraffic;
Loop
Exe_Pos := 5;
CallDateArr.delete;
FETCH cTraffic BULK COLLECT
INTO CallDateArr, SiteArr, CountryArr, Customer_NameArr,CustomerNumberArr,
BCNArr,DESTINATION_TYPEArr,PRODUCT_CODEArr, PRODUCTArr, DurationArr, DebamounteurArr LIMIT arraySize;
EXIT WHEN CallDateArr.first IS NULL;
Exe_pos := 6;
FORALL i IN 1..callDateArr.last
insert into country_traffic_details
values(CallDateArr(i), CountryArr(i), Customer_NameArr(i),CustomerNumberArr(i),
BCNArr(i),DESTINATION_TYPEArr(i),PRODUCT_CODEArr(i), PRODUCTArr(i), DurationArr(i),
DebamounteurArr(i), SiteArr(i));
Exe_pos := 7;
dbms_output.put_line('7: '||to_char(sysdate, 'HH24:MI:SS'));
EXIT WHEN ctraffic%NOTFOUND;
END LOOP;
commit;
Exe_Pos := 8;
commit;
dbms_output.put_line('8: '||to_char(sysdate, 'HH24:MI:SS'));
lSql := 'CREATE INDEX COUNTRY_TRAFFIC_DETAILS_CUSTNO ON country_traffic_details (CUSTOMER_NUMBER)';
execDDl(lSql);
lSql := 'CREATE INDEX COUNTRY_TRAFFIC_DETAILS_BCN ON country_traffic_details (BCN)';
execDDl(lSql);
lSql := 'CREATE INDEX COUNTRY_TRAFFIC_DETAILS_PRODCD ON country_traffic_details (PRODUCT_CODE)';
execDDl(lSql);
lSql := 'CREATE INDEX COUNTRY_TRAFFIC_DETAILS_SITE ON country_traffic_details (SITE)';
execDDl(lSql);
lSql := 'CREATE INDEX COUNTRY_TRAFFIC_DETAILS_DESTYP ON country_traffic_details (DESTINATION_TYPE)';
execDDl(lSql);
Exe_Pos:= 9;
dbms_output.put_line('9: '||to_char(sysdate, 'HH24:MI:SS'));
Exception
When Others then
raise_application_error(-20003, 'Error in populateCountryTrafficDetails at Position: '||Exe_Pos||' The Error is '||SQLERRM);
End populateCountryTrafficDetails;
In the above procedure if i substitute the values with hard coded values i.e. AR_orgid = 123 & pcountry = 'Austria' then it runs faster.
Please let me know why it is so ?
Thanks in advance. -
I keep getting this when trying to open Time machine: An unexpected error occurred (error code -6584). time machine wont even open up. My Time capsule has a green lite and appears fine
Thaks,This often means the backup is corrupted.
First of all reboot the network.. turn everything off and restart in order.. modem.. TC.. clients.
If you still have issues, hold the option key when you click the Time Machine icon on the top menu and it will bring up verify backups.
Do that.
Read this thread if you need more..
https://discussions.apple.com/thread/3123920?tstart=0
It seems to be a fairly complex problem if the above don't work. -
i have a problem when i am connecting my mbpr to a monitor , the internet is going very slow when i connect to the monitor plz help me if i buy a vga to minidisplay it will help??
dovdov2,
are you saying that when you connect your MacBook Pro to a monitor, your Internet connection slows down, but when you disconnect the monitor, it speeds up again, and that this is reproducible from one day to another?
Does this happen both under OS X and under Windows 7, or only under one of them?
How are you currently connecting your MacBook Pro to your monitor? -
Its showing error 2003 when i m restoring my iphone3g.pls help me to get out of this problem.as soon as possible
Error 2000-2009 (2001, 2002, 2005, 2006, 2009, and so on)
If you experience this issue on a Mac, disconnect third-party devices, hubs, spare cables, displays, reset the SMC, and then try to restore. If you are using a Windows computer, remove all USB devices and spare cables other than your keyboard, mouse, and the device, restart the computer, and try to restore. If that does not resolve the issue, try the USB issue-resolution steps and articles listed for Error 1604 above. If the issue persists, it may be related to conflicting security software. If the errors persist on another computer and known-good USB cable, the device may need service.
The "device may need service" means a hardware problem. In that case make an appointment at the Genius Bar of an Apple store. -
Hey my iphone 5 is very slow when i download apps can any wan help me pleas ??
hey my iphone 5 is very slow when i download apps can any wan help me pleas my iphone 4 is much much better then the new iphone 5
I'm facing the same problem on my iPhone 5 , shame on you apple .
-
after updating my iphone 3gs to ios6 a message "we're sorry, we are unable to continue with your activation at this time." pls help
I have the same problem after updating to the latest iTunes. I purchased an iPhone 4S this past summer and gave my 3GS to my 6 year-old minus the SIM card-- an instant iPod Touch. Things were fine until the latest version of iTunes 11.0. Until I updated to 11.0.1, iTunes would not even "see" the iPhone.
How do I get past the insistence to activate the phone? Right now, it's a useless brick. -
Getting error when we execute query in RSRT1
Hi Gurus,
I Loaded Transaction data in "0CCA_C11" cube and also loaded master data too.
but when i execute query in RSRT1 i am getting error message
1) Could not enter feature 0COSTCENTER__0PROFIT_CTR with SID 133 into table /BI0/SIOBJNM
2)System error in program CL_RSR and form GET_CHANMID-02- (see long text)
3)Error when generating dataProvider.
For 0COSTCENTER i loaded master data but for '0PROFIT_CTR' i am unable to load Hierarchy data because still the request is yellow even showing 58 from 58 records.
can any once can help me to soleve this issue.
Thanks in advance.
Raju.k
*points to be assigned.Raju,
Try replicating your hierarchy DS and reload data.
hope it helps,
balaji -
C++/CUDA DLL fails to give correct results when running a second time
Hi all.
I just finished writing a C++/CUDA DLL that runs in labview.
It passes a 3d array, crunches the data, then spits out some results as a 2d array.
When I open labview, and run it, I get the predicted results. However if I run the labview code again, it gives me garbage data.
I have to not only close the open VI, but all of labview itself, reopen it, and then it will work again for one run.
I read a thread on somthing similar to this happening with C++ code due to the way labview handled threads, however this was over 10 years ago, and it seems that since LV 2008 this has been fixed. I am running LV 2011.
In my code, I checked that all dynamic memory allocated gets deleted, both on the GPU and CPU so other than that, I'm not sure what the problem could be. What changes when I call the DLL a second time?
Please ask me to clarify anything that you might need to know about the program, and its implimentation.
I have written other labview DLLs in just C++ that have not had this problem, so I wonder if it is a CUDA specific thing, or maybe somthing else I am overlooking.It seems to be that something not properly closed. What you can try is - unload DLL.
CUDA Compute Context should be theoretically not necessary if your CUDA functions executed "all in one call" (and properly closed at all). The reason for NI Compute is following: it is not guaranteed that thread safe DLL calls will be called in the same thread. So, for example if you have three separate DLL calls in LabVIEW, for example - transfer data to GPU memory, compute, transfer back to the host - they should be done in the same thread (in CUDA terms all functions should be executed within same context). You can call these functions in UI thread - it will work, but the UI thread will be blocked. Or you can mark calls as thread safe, and using NI Compute - then all three calls will be done within same thread and this thread is separated from UI thread.
Andrey. -
Query Designer slows down after working some time with it
Hi all,
the new BEx Query Designer slows down when working some time with it. The longer it remains open, the slower it gets. Especially formula editing slows down extremely.
Did anyone of you encounter the same problem? Do you have an idea, how to fix this. To me it seems as if the Designer allocates more and more RAM and does not free that up.
My version: BI AddOn 7.X, Support Package 13, Revision 467
Kind regards,
PhilippI have seen a similar problem on one of my devices, the 'Samsung A-920'. Every time the system would pop up the 'Will you allow Network Access' screen , the imput from all keypresses from then on would be strangely delayed. It looked like the problem was connected with the switching from my app and the system dialog form. I tried for many many long hours / days to fix this, but just ended up hacking my phone to remove the security questions. After removing the security questions my problem went away.
I don't know if it's an option in your application, but is it possible to do everything using just one Canvas, and not switch between displayables? You may want to do an experiment using a single displayable Canvas, and just change how it draws. I know this will make user input much more complicated, but you may be able to avoid the input delays.
In my case, I think the device wasn't properly releasing / un-registering the input handling from the previous dialogs, so all keypresses still went through the non-current network-security dialog before reaching my app. -
My mac gets slow when I play music from my iTunes library
Hi, aproximately six months ago I noticed that everytime I play music from my iTunes library that its stored in my 27" iMac's hard drive, the computer gets slow, the images start to flicker, the animatios on the dock and the one when u minimize or maximaze the windows, also flicker. As soon as I close iTunes the computer works fine again. When I play music from a CD this doesn't happen.
I've taken the iMac to two service providers along theese 6 months and neighther have been able to fix the issue. What they have diagnozed is an issue with the hard drive which has been changed 4 times already.
What could be the issue?Basic troubleshooting from the User's Guide is reset, restart, restore (first from backup then as new). Try each of these in order until the issue is resolved.
-
Dialog Box does not function when called a second time
I have created a dialog box that only seems to work once in a larger application. The box is designed to be a MatLab code debugger. My idea was to allow a user to interactively create/debug Matlab code from LabView using ActiveX automation. Anyway, I have created a test vi that uses this dialog box twice. The first time it is called it functions as expected, but the second time nothing on the front panel (of the dialog box) responds and I cannot close the window or interrupt the vi. I am using LabVIEW 7.0 on Windows 98. Please see the attached vi's. MatlabDebugger.vi is the dialog that's causing the problem. Matlabx2.vi is the sub vi that handles the ActiveX automation. Debuggertest.vi is the test v
i in which the dialog will not word a second time.
Thanks in advance for any help or suggestions.
Attachments:
Debuggertest.vi 51 KB
MatlabDebugger.vi 303 KB
Matlabx2.vi 361 KBThe problem is caused by the nested event structures; you have an event structure inside an event structure, acting on the same controls. When the main one reacts to the cancel the other one get's stuck...so on the next call the main event structure just halts due to the stuck event structure inside it. It's not obvious why this is a fault, you may be able to spot it now that you're on the track though.
MTO -
Flsh CC 2014 Bug - SWF detected as SWF-Eploit when compiled a second time
There seems to be a serious bug in Flash CC 2014. When compiling an swf for the first time, everything is fine. But after compiling it a second time (even without making any changes) the anti virus software of the server hooks in and deletes the file automatically because of a swf exploit cve detection!
Anyone else having this problem or any suggestions on how to solve this?I've the same problem!
My old .SWF version is running fine on the server. I can execute it from the website.
When rename this .SWF version locally (PC) and send this exact same copy to the server by FTP, it 's rejected.
Server response.
> 550 Virus Detected and Removed: Swf.Exploit.CVE_2014_0564-2
: /renamed.swf
The file itself seams to be ok, scanned locally with Panda antivirus and AVG.
I compiled it with the latest FLASH, still the same server response.
I'll think to contact the server desk of the provider. I'll think it is a false positive for CLAMAV.
Pieter -
Labview visa getting slow when connected to arduino
visa in labview when connected to arduino prog gets slow
i have checked it passes the required codde but action is slow
and most important every time to get the o/p i need to stop the prog then start again.
i tried doing a new prog with only one string constant and visa in singlw while loop thinking this was due to lenghty progs but still things are not working as i want i.e. fast n without stopping the prog. i have attached my files n images of required portion of block diag
i have used a string of lenght 10 char n i my program and just one visa write.
Solved!
Go to Solution.Ranjeet_Singh my requirement is to send 10 character srting from visa write to arduino. When i change the controller index and click on my led's which i have designed to transmit my code( only if true) using case selctor the code must reach arduino. It reaches but there is a delay of 2 to 3seconds everytime i send. and next time when i change th index and click the led to send the code it is not passed. when i run the program again it is passed. I have added all my code in a single while loop which runs continously.
I have made a code in arduino for my hardware. when i send codes from arduino my hardware runs successflly.
n yes only command response operation is involved.
regarding 2011 i wont be able to i guess.but i am copy pasting my prog in labview 7.1. except visa everythig is pasted i guess.
i have attached images of my block diagram for further reference.
my harware is: two 8bit DAC, DDS an i.c. which accepts code and generates sinwave, digital potentiometer which accepts code and takes a value between 0 to 10kohm and 12 relays take thier control signal from this code.
crossrulz m using port 18 of my p.c and connecting usb to arduino mega 2560.
my harware is: two 8bit DAC, DDS an i.c. which accepts code and generates sinwave, digital potentiometer which accepts code and takes a value between 0 to 10kohm and 12 relays take thier control signal from this code.
i judge labview goes slow because when i dont connect arduino n run the prog the hex code indicator going to visa displays code exactly at the instant when i press led for transmission of code.
as per ur sugesstion i checked arduino board i found thr transmission and recieve led's are on continously.and as per my labview prog my transmission should actually start only when i click the led.may due to continues transmissiion its getting slow.
but what can i do then?
Maybe you are looking for
-
How to set up a Mac as a server
We have come to the point where we need a central back up point for all the computers in our household. I was thinking about setting up one computer as a server, which would have maybe an external hard drive set up. Am I on the right path, or would t
-
Audio Line-in input and BT Headset output not working
Hi, I'm trying to run the Line-in into my MBPro and route the output to my Logitech H800 BT Headphones at the same time (a pass through), but can't get it to work. I have tried to run the line-in to the Internal Speakers and can not get this to work
-
HT1338 i have a macbook air and need to install a hp laserjet 1018 drivers
hi i have a mac book air and need to install drivers for hp laserjet 1018 and dont seem to be having alot of luck!
-
HT1459 slide bar doesnt work its like screen is locked
slide bar doesnt work its like screen is locked its old a second generation
-
I need help in activating apple id to for the find my iphone app
i need help in activating apple id to for the find my iphone app