shib_best Posted February 4, 2015 Posted February 4, 2015 How to chunk huge csv report that is exported as csv into like 50 Mb.I have a report which export a csv size of 900 mb ,I need to slipt it in multiple csv files while exporting.
peter.w Posted February 5, 2015 Posted February 5, 2015 HiNot sure if this will work but have you tried making the export report query use a limit?EG:if you know how many records you are going to exportSELECT COUNT(TRANSACTION_ID_NO) AS tran_countFROM transactiontran_count = 1000In the actual export report take two parameters START_AT and LIMIT_TOO so thatSELECT *FROM transactionLIMIT 0 , 500This gives the first 500 rows becomes something like this in jasperSELECT *FROM transactionLIMIT $P{START_AT} , $P{LIMIT_TOO}You would have to call the report more than once with the start and row count each time.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now