Really, how would I call this thread else?
Intro:
Products, each Product has Color and each product can have Variations, which also has Color.
Something like Car Mersedes Black, Car Mersedes Red, Truck Mersedes Black, and so on.
So each item has reference-id, smth like:
72368 mersedes car, 2d, coupe white
72368 mersedes car, 2d, coupe black
There are other constraints for design choices, but it is not valuable now.
CSV_importer, 3 operations:
1) Go through csv and create a list of clonable pages with Colors, available for products.
2) Again, go through and create a unique photo gallery of Reference Id of products, each Id (photo) relate to 1 Color.
3) Now, go through and create nested gallery for each ReferenceId, store Variations and relate each one to Color and each one to main ReferenceId.
Now we are set.
If all 3 operations are performed in a single template, then *some* of the data is not stored. All normal data is there (usual editables), Relations data is unpredictable - some is stored, some is not.
I noticed, that such frame drops occur when there is autogenerated k_page_name's. There are of course some repetitions in source, and Couch pleasantly autocreates k_page_name, out of Titles (specified in db_persist). But when there must be checkings for unique name, this operation 'loses focus' and has no time maybe to allow also storing relations data. Or maybe there are some crossings of variables in system, idk. Before all operations all templates are cleaned of any pages.
If all the three operations are separated by 3 different physical templates - there are no issues. I will stick to 3 different files, and advise client not to rush.
There is another thing with relations.
Whenever a relations editable is deleted from a template - refreshing template as superadmin doesn't help to remove this editable and populated data. There must be some bug, as I have to clean out the template, rename it, delete from admin, then reinstall and voila, it is ok.
These are the thoughts. If interested, I will save all templates and put on ftp, or here as zip. I can get back to it in a week or so. So, first rule also applies here. No rush.
Intro:
Products, each Product has Color and each product can have Variations, which also has Color.
Something like Car Mersedes Black, Car Mersedes Red, Truck Mersedes Black, and so on.
So each item has reference-id, smth like:
72368 mersedes car, 2d, coupe white
72368 mersedes car, 2d, coupe black
There are other constraints for design choices, but it is not valuable now.
CSV_importer, 3 operations:
1) Go through csv and create a list of clonable pages with Colors, available for products.
2) Again, go through and create a unique photo gallery of Reference Id of products, each Id (photo) relate to 1 Color.
3) Now, go through and create nested gallery for each ReferenceId, store Variations and relate each one to Color and each one to main ReferenceId.
Now we are set.
If all 3 operations are performed in a single template, then *some* of the data is not stored. All normal data is there (usual editables), Relations data is unpredictable - some is stored, some is not.
I noticed, that such frame drops occur when there is autogenerated k_page_name's. There are of course some repetitions in source, and Couch pleasantly autocreates k_page_name, out of Titles (specified in db_persist). But when there must be checkings for unique name, this operation 'loses focus' and has no time maybe to allow also storing relations data. Or maybe there are some crossings of variables in system, idk. Before all operations all templates are cleaned of any pages.
If all the three operations are separated by 3 different physical templates - there are no issues. I will stick to 3 different files, and advise client not to rush.
There is another thing with relations.
Whenever a relations editable is deleted from a template - refreshing template as superadmin doesn't help to remove this editable and populated data. There must be some bug, as I have to clean out the template, rename it, delete from admin, then reinstall and voila, it is ok.
These are the thoughts. If interested, I will save all templates and put on ftp, or here as zip. I can get back to it in a week or so. So, first rule also applies here. No rush.
