-1

I am new to Grails and have a question: I set the environment to production and want to make "new" domain variable. I am wondering where it will be stored in db or memory? If in db how could I store it in memory or vice versa (in runtime)?

cdeszaq
  • 30,869
  • 25
  • 117
  • 173
Reza
  • 739
  • 1
  • 10
  • 24

2 Answers2

0

The default grails application stores it in "memory" (when run in dev mode) and it depends on the DataSource.groovy setting url = "jdbc:h2:file:~/data/.h2Dev"

If it's file it will be stored in file. If it's mem it will be stored in memory

Ganesh Krishnan
  • 7,155
  • 2
  • 44
  • 52