Search code examples
intersystems-iris

How to turn off journaling in IRIS programmatically


How can I programmatically turn off journalling in a particular InterSystems IRIS database?


Solution

  • input by Lucas Fernandes · Jul 27,2021

    In Caché I use this:

    set path = ##class(Config.Databases).Open("USER").Directory  
    
    set database = ##class(SYS.Database).%OpenId($get(path))
    
    do database.DisableJournaling()
    set status = database.%Save()
    
    do database.EnableJournaling()
    set status = database.%Save()