2

First thing, I have a question on this topic Optimize load model memory

Then I have some questions for the best way to create a Model to load or save data to Database?

Could you please explain which of these options are bad and which are better.

1: Using Factory?

2: Using Dependencies?

3: Using Repository?

Or could you please suggest to me some other way that does it better?

Thank for any explanation.

John
  • 827
  • 10
  • 22
HoangHieu
  • 1,348
  • 8
  • 24
  • https://magento.stackexchange.com/questions/158081/when-should-we-use-a-repository-and-factory-in-magento-2 – HoangHieu Jun 14 '19 at 02:47

0 Answers0