# |
Mar 26th 2019, 15:13 |
dereuromark |
? memory? if they are all separate tasks, there is no memory. |
# |
Mar 26th 2019, 15:13 |
ricksaccous |
and loop through them to generate tasks? |
# |
Mar 26th 2019, 15:13 |
dereuromark |
I do that here also for github/git operations. often it fails the first time, but then works on 2nd try. |
# |
Mar 26th 2019, 15:13 |
ricksaccous |
might be bad to load 400 emails in memory though |
# |
Mar 26th 2019, 15:12 |
dereuromark |
with API/gateway connections you should always plan for a single fail. |
# |
Mar 26th 2019, 15:12 |
ricksaccous |
i see |
# |
Mar 26th 2019, 15:12 |
dereuromark |
especially if you want to have properl logging and handling I suggested afterwards: " each indiviual fail can be auto-retried e.g. once." |
# |
Mar 26th 2019, 15:12 |
ricksaccous |
you just sent all 400 as queue tasks to the queue. the workers process them invividually, until queue is empty. depending on how many workers, there could be a few sent in parallel. |
# |
Mar 26th 2019, 15:11 |
dereuromark |
@ricksaccous I told you before :slightly_smiling_face: see above. |
# |
Mar 26th 2019, 15:11 |
Albatros |
https://www.pastiebin.com/5c9a40ee68202 |
# |
Mar 26th 2019, 15:11 |
ricksaccous |
@dereuromark would you recommend sending each individual email as a task or would you recommend having the task wade through all 400? |
# |
Mar 26th 2019, 15:11 |
Albatros |
this is our "temp" solution |
# |
Mar 26th 2019, 15:11 |
Albatros |
Indexes are in DB, and if we execute query in DB it is fast |
# |
Mar 26th 2019, 15:11 |
dereuromark |
especially when you do order on fields like earliest_delivery_date |
# |
Mar 26th 2019, 15:10 |
dereuromark |
make sure you have your indexes set. |
# |
Mar 26th 2019, 15:10 |
Albatros |
https://www.pastiebin.com/5c9a40ee68202 |
# |
Mar 26th 2019, 15:10 |
Albatros |
If @dereuromark is in CORE team, I have one question regarding performance. So, we have a Query where we are collection all orders (Super Admin). There is about 50 000 orders in the system. Now, after the user try to open orders/index site, the site is very slow -> here is our query |
# |
Mar 26th 2019, 15:07 |
Albatros |
In every other community response on the question is much longer than in this channel (Respect :) ) |
# |
Mar 26th 2019, 15:06 |
Albatros |
@dereuromark I will take a look your plugins (they are pretty updated :D ). I have already generated code with cake/bake but there are always additional things in combination with JS. There are no specific question, I wanted only to jump in into larger project :) |
# |
Mar 26th 2019, 15:05 |
neon1024 |
Although Mark is in the core team :P |
# |
Mar 26th 2019, 15:04 |
neon1024 |
Would be interesting as @dereuromark and myself have different approaches and styles |
# |
Mar 26th 2019, 15:04 |
neon1024 |
If you could give us an example of something complex to validate we could answer that perhaps :slightly_smiling_face: |
# |
Mar 26th 2019, 15:04 |
neon1024 |
If this is a theoretical question it will be hard to answer |
# |
Mar 26th 2019, 15:03 |
neon1024 |
Plus you have cakephp/bake which will generate most ‘best practise’ boilerplate |
# |
Mar 26th 2019, 15:03 |
dereuromark |
Some of the plugins going in that area will probably tell you a lot. |
# |
Mar 26th 2019, 15:03 |
neon1024 |
Using elements is very straight forward |
# |
Mar 26th 2019, 15:03 |
neon1024 |
Code splitting is down to SOLID |
# |
Mar 26th 2019, 15:02 |
Albatros |
Almost all of them are <3.5 and <7v php I want to see one a little bit complex project and how experienced programmers writes methods (code splitting etc), some nice templates in ctp (using Elements). This basic tutorial is OK but if we want some additional validation, additional code than there is a mess. Example: For the React/Vue you can find a lot of boilerplates and similair projects. |
# |
Mar 26th 2019, 15:00 |
neon1024 |
There isn’t really a best practise, there are only framework conventions |
# |
Mar 26th 2019, 14:59 |
neon1024 |
Albatros, What is it you’re hoping to find? Perhaps we can just answer the questions |
# |
Mar 26th 2019, 14:58 |
neon1024 |
Yeah 3.2.10 :( |
# |
Mar 26th 2019, 14:58 |
dereuromark |
sandbox etc. |
# |
Mar 26th 2019, 14:58 |
dereuromark |
not mine :slightly_smiling_face: |
# |
Mar 26th 2019, 14:58 |
neon1024 |
I wrote this one, but it’s quite out of date now |
# |
Mar 26th 2019, 14:58 |
neon1024 |
https://github.com/davidyell/Cricketeer |
# |
Mar 26th 2019, 14:58 |
neon1024 |
Hm, perhaps not, or I can’t find them |
# |
Mar 26th 2019, 14:57 |
Albatros |
@dereuromark Thx, but on that link most of "blog" and other projects are outdated and a lot of with 404 error |
# |
Mar 26th 2019, 14:56 |
neon1024 |
Sure thing, I have a few, and I know that @lorenzo and @steinkel have a few. Let me see if I can find some |
# |
Mar 26th 2019, 14:51 |
skie |
Have you tried to use oracle synonyms? That the best way to use multiple schemas in oracle |
# |
Mar 26th 2019, 14:39 |
Albatros |
I do not mean on this tutorial in docu |
# |
Mar 26th 2019, 14:39 |
dereuromark |
Check the awesome list for demo apps. https://github.com/FriendsOfCake/awesome-cakephp |