Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
6215 Weergaven

Hello,

I've a wizard into my module. This wizard is used to make an action that doesn't need to save its data. Is there a way to prevent sving data into db?

Thanks

Avatar
Annuleer
Beste antwoord

It may need to save data temporarily to function alongside the rest of the system, that's inevitable. osv_memory models will automatically be pruned from the database over time, based on the configuration settings 'osv_memory_age_limit' and 'osv_memory_count_limit'. This is run by a regularly scheduled action, 'AutoVacuum osv_memory objects'.

If you really want to ensure that any written data is cleared after execution you could manually unlink the ids created before returning the empty dictionary to close the wizard, but that's generally unnecessary.

Avatar
Annuleer
Auteur

thanks for your answer same conclusion that mine :)