Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I have a question rgd. LOAD times for one specific table:
- The table is very big, but on one field it can be split: One part (only one value in that field) has about 5% of all records, the other part (all other values in that field) has about 95% of records.
- There is nów only one filter splitting the table in two: >> TRANCODE = 'SPRECEIVE' << and >> TRANCODE <> 'SPRECEIVE' <<
<=> The first part (LOADed from a qvd file) takes much longer to load than the second one.
These are the two loads: FIRST LOAD:
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
Trans_Dtl_Rec:
LOAD
ITEM_NUMBER as Rec.ITEM_NUMBER,
TRAN_DATE_TD as Rec.TRAN_DATE_TD,
TRAN_DATE_Time as Rec.TRAN_DATE_Time,
TRAN_CODE as Rec.TRAN_CODE,
QUANTITY as Rec.QUANTITY,
BIN as Rec.BIN,
TRACKING_NUMBER as Rec.TRACKING_NUMBER,
CONTROL_NUMBER as Rec.CONTROL_NUMBER,
SERIAL_LOT_NUMBER as Rec.SERIAL_LOT_NUMBER
FROM $(v_Pfad_TransDtl) (qvd)
WHERE TRAN_CODE = 'SPRECEIVE';
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
SECOND LOAD
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
Trans_Dtl_aside:
LOAD
ITEM_NUMBER as Aside.ITEM_NUMBER,
TRAN_DATE_TD as Aside.TRAN_DATE_TD,
TRAN_DATE_Time as Aside.TRAN_DATE_Time,
TRAN_CODE as Aside.TRAN_CODE,
QUANTITY as Aside.QUANTITY,
BIN as Aside.BIN,
TRACKING_NUMBER as Aside.TRACKING_NUMBER,
CONTROL_NUMBER as Aside.CONTROL_NUMBER,
SERIAL_LOT_NUMBER as Aside.SERIAL_LOT_NUMBER
FROM $(v_Pfad_TransDtl) (qvd)
WHERE TRAN_CODE <> 'SPRECEIVE';
=> Is there any way I can speed that up?
Thanks a lot!
Best regards,
DataNibbler
Hi Marcus,
I was just trying something like that - I have two BINARY_commands to use, and they differ only in the plant_name "a164" or "a163" which is in the name of that inbetween-qvw ...
So I had the idea of using an IF_clause to fill my final BINARY_variable with one of two possible filepaths according to the value of that plant which the user could select via an Inputbox - that way I wouldn't have to concatenate anything and I would avoid trouble with the quotes. In the script, I will just write the word 'BINARY' followed by this variable - that part works in principle, I have tested it.
I tried with an IF_THEN clause, but that didn't work. I'll try a simple IF clause now.
Let's see ...
P.S.: Oh no - in the script, QlikView fills in the complete variable (including the IF_clause) which of course does not work ...
It did work when I have the user select one of the two BINARY commands right away. I am only trying to keep it simple by only having the user select one of the two plants.