Current Behavior 😯
When Ent generates models/entities for the schema, it creates them in a single directory and the go compiler compiles the same in a single process. When the ent-generated files are being compiled, it takes a lot of memory and time.
Having defined schema for around 300 tables, no. of files generated is proportionally large and the go compiler takes a lot of time and memory to compile, even causing the server to go out of memory sometimes.
Your Environment 🌎
Current Server Configuration: 8Gib RAM
Current Behavior 😯
When Ent generates models/entities for the schema, it creates them in a single directory and the go compiler compiles the same in a single process. When the ent-generated files are being compiled, it takes a lot of memory and time.
Having defined schema for around 300 tables, no. of files generated is proportionally large and the go compiler takes a lot of time and memory to compile, even causing the server to go out of memory sometimes.
Your Environment 🌎
Current Server Configuration: 8Gib RAM