Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
brunodec
Contributor III
Contributor III

Delete mapping tables to free memory

Hello,

Mapping tables are automatically deleted at the end of script execution. However is there a way to delete a mapping table during script. Would that be useful to free memory in case of large mapping tables only used once in the script ?

1 Solution

Accepted Solutions
swuehl
MVP
MVP

Robert, are you sure about that?

I believe you can only DROP resident tables and I get 'table not found' if I try to DROP mapping tables (and to answer the OPs question, I don't know any other method to delete  mapping tables during script run).

View solution in original post

14 Replies
robert_mika
Master III
Master III

You can always drop the table during the scripting execution.

swuehl
MVP
MVP

Robert, are you sure about that?

I believe you can only DROP resident tables and I get 'table not found' if I try to DROP mapping tables (and to answer the OPs question, I don't know any other method to delete  mapping tables during script run).

robert_mika
Master III
Master III

You are right Stefan.

I misunderstood the question.

Bruno please ignore my advice.

avinashelite

your rite, Mapping tables will be automatically deleted at the end of the script and we don't have the control to delete it in the middle .

amit_saini
Master III
Master III

Hi Bruno,

Mapping table gets deleted automatically when you are running the script. If they are still present than could be something wrong with ur script.

Thanks,

AS

PradeepReddy
Specialist II
Specialist II

Mapping Tables will be deleted automatically at the end of the script execution.

We can't drop/delete the mapping tables in middle of the script execution.

HirisH_V7
Master
Master

Hi,

I don't think you need to check, they do get deleted after reload.

If mapping tables were there, your model would be screwed up.

Use a system table to verify.

-Hirish

HirisH
“Aspire to Inspire before we Expire!”
NareshGuntur
Partner - Specialist
Partner - Specialist

How big is your mapping table?

Does it contain huge number of rows?

Mapping table will not take much memory and doesn't make any difference even if you are able to delete during the script execution as it contains only 2 fields.

Cheers,

Naresh

brunodec
Contributor III
Contributor III
Author

Hi Naresh,

Currently I'm building a model in test so impact is small but when going into production I will have about 60 mapping tables with some of them having more than 50k rows, So technically this would mean maximum 3 million rows stored in memory during the whole script run. As of course also the resident tables are in memory I thought it would be good to delete tables from memory - whether it be mapping tables or resident tables. But apparently it is not possible.
If you say mapping tables don't take much memory then this is good news. I felt some compassion with my computer who needs to handle so much data 🙂

Thanks,

Bruno.