1b.app
Link copied -

Hourly kroner

Hourly kroner works out 6200 seconds

Can we optimize? I suppose this is due to the action of CsCart ?
Original question is available on version: ru

Answers:

Look at ?
Because of this problem, we do not work out other actions that should work once a day at a specified time.
Example
- Set up a business process for the purchase of products per employee
- Calculate bonus based on KPI
12.11.2021, 11:39
Original comment available on version: ru

Суханіцький Андрій OneBox CORP
OneBox Corp - Інтегратор
Personal license
And what exactly happens, the goods are unloaded in cs-cart or loaded from it?
12.11.2021, 11:44
Original comment available on version: ru


Sukhanitsky Andrey
OneBox Corp.
Integrator wrote:
And what exactly happens, the goods are unloaded in cs-cart or loaded from it?

upload to 4 xcart sites
Working with settings
"Export images only for products where an additional field"
Boxing takes so long to unload goods? sending requests? Or does xcart have any restrictions?
12.11.2021, 13:05
Original comment available on version: ru

Суханіцький Андрій OneBox CORP
OneBox Corp - Інтегратор
Personal license
cs-cart has a rather slow api, so it takes a long time to process all the goods.
As a solution option here, refine the setting in order to unload only products for which the selected fields have changed, add price, availability, possibly additional fields there.
12.11.2021, 13:16
Original comment available on version: ru

We can improve
If the product is not in CsCart - creates it and unloads all fields from the list (if nothing is selected - unloads everything)
If the product is in CsCart - checks for changes in the box of fields that we select (price and availability)
Or if you need to reduce the number of requests
Then, transfer the unloading of goods (and all data) to daytime crowns (so that it works at night). And on the hour crown, leave only changes in price and availability if they changed in the box
What will be the score?
12.11.2021, 13:33
Original comment available on version: ru

Суханіцький Андрій OneBox CORP
OneBox Corp - Інтегратор
Personal license

Vysokos Nikolai Aleksandrovich wrote:
If the product is not in CsCart - creates it and unloads all fields from the list (if nothing is selected - unloads everything)

In order to find this out, you first need to go through all the products in order to understand which ones are and which are not, and then check those that have changes in the fields, this is inefficient logic and will not reduce the time of work, or it will reduce, but not very.
It is more efficient to unload all new products and products that have had changes in the selected fields, that is, filtering occurs immediately on the box side, and only then queries go to cs-cart.
You can do something similar, as you did for unloading xml only so that the settings are summed up and those that have had changes and those that have been created for the last day. Or set up 2 actions.
According to the assessment, one of the programmers will answer
12.11.2021, 16:09
Original comment available on version: ru


Sukhanitsky Andrey
OneBox Corp.
Integrator wrote:
It is more efficient to unload all new products and products that have had changes in the selected fields, that is, filtering occurs immediately on the box side, and only then queries go to cs-cart.
You can do something similar, as you did for unloading xml only so that the settings are summed up and those that have had changes and those that have been created for the last day. Or set up 2 actions.
According to the assessment, one of the programmers will answer

The solution is good. I suppose to these settings you need to add the ability to choose exactly when the hourly crown will work, or the inclusion of a daily crown
Please rate
12.11.2021, 16:38
Original comment available on version: ru



Ustimenko Igor
OneBox Corp.
OneBox CTO wrote:
4h

Submit an invoice
23.11.2021, 12:48
Original comment available on version: ru


1. added the setting "Select product fields. The product will be unloaded only if one of the selected fields has changed since the last unloading by this action" with the fields that are involved in the unloading and can be checked in the history of product changes
PS: the action must work 1 time to remember when it worked out the last time for the subsequent use of this setting
2. added the setting "Upload only products whose creation date is earlier than the current time minus the specified number of days"
this setting is best used separately from the setting from step 1 (set up 2 separate actions)
3. added setting "Action start time"
you can use it, for example, to point 2, to upload new products once a day
25.11.2021, 12:35
Original comment available on version: ru

Суханіцький Андрій OneBox CORP
OneBox Corp - Інтегратор
Personal license

Tyndyk Maxim Vadimovich
OneBox production wrote:
3. added setting "Action start time"
you can use it, for example, to point 2, to upload new products once a day

If you put this setting in conjunction with item 1, for example, at 9:00 and at 18:00, then the action will look at changes in this time interval and unload only products that have changed in this interval?
25.11.2021, 12:57
Original comment available on version: ru


If you put this setting in conjunction with item 1, for example, at 9:00 and at 18:00, then the action will look at changes in this time interval and unload only products that have changed in this interval?

yes, after 18.00 it will record the time the action was launched, and the next time at 9.00 it will take the changes since the previous launch at 18.00
25.11.2021, 13:30
Original comment available on version: ru

Please join the conversation. If you have something to say - please write a comment. You will need a mobile phone and an SMS code for identification to enter. Log in and comment