F
F
FasterTans2020-10-25 14:42:39
Yii
FasterTans, 2020-10-25 14:42:39

Is it possible to do a bulk insert with many to many relationships?

In short, the EAV structure, there are products, attributes, values, and a table that links it all.
Is it possible to do a bulk insert in YII?
I pick up goods via API, parse them, how can I insert them in bulk \ if the goods exist, then just update? There are a lot of goods, I would like to do it for the minimum number of queries in the database.
If YII does not support this (I did not find it in the documentation), can I somehow implement it with raw queries?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question