GORM Golang : the purpose of cloning DB instance
<p>In few pass week I just learn about GORM as the database ORM. After checking inside the code, every command (limit, order, where, or, select, etc) are returning new instance by cloning the current DB.<br>
Is there anyone here know what is the main purpose of cloning the DB instead of using the current instance?<br>
When I have command select, where, limit, order, join, that will be 5 times of cloning the DB instance. AFAIK, creating object on the memory are expensive.</p>