Thanks for sharing Phil this gonna help me a lot in my next project
@PhilSmy
5 ай бұрын
Glad to help
@danielnottingham2969
2 жыл бұрын
Congratulations for the content! I learned a lot from your class. Greetings from Brazil!
@PhilSmy
2 жыл бұрын
Thank you very much!
@cherryramatis2508
Жыл бұрын
Sempre bom ver brasileiros, eh nois ❤
@vitormil
2 жыл бұрын
Amazing content Phil, thanks for sharing
@PhilSmy
2 жыл бұрын
Glad you enjoyed it!
@kaysiz-zw
7 ай бұрын
Very good intro and super useful
@juanandrew1356
Жыл бұрын
this video is great for learning! hopefully I can be mentored by you!
@PhilSmy
Жыл бұрын
Thank you so much!
@enjoythements777
3 жыл бұрын
Great rails video as always! Pls next time increase the font of your terminal and vscode
@enjoythements777
3 жыл бұрын
Cool. Resolved :)
@PhilSmy
3 жыл бұрын
Yes, in a couple videos I got all excited and forgot to check beforehand. Now I have a pre-flight checklist! Thanks for watching.
@midwestcoast4381
3 жыл бұрын
Great stuff, looking forward to more videos
@PhilSmy
3 жыл бұрын
Thanks for watching! And more shall come!
@sanan4884
Жыл бұрын
Loved it!! :)
@al-mokhtar_
3 жыл бұрын
new sub phil thanks for sharing this great tuto
@PhilSmy
3 жыл бұрын
Thanks for the sub!
@adancondori5565
2 жыл бұрын
Exelente Video,
@julianopaulo
3 жыл бұрын
Great video
@PhilSmy
3 жыл бұрын
Thanks!
@CerFrus
2 жыл бұрын
Great video! thanks for sharing
@shabbirsaifee7497
3 жыл бұрын
loved it!!
@PhilSmy
3 жыл бұрын
Thank you!
@canofsteam
3 жыл бұрын
Very helpful
@PhilSmy
3 жыл бұрын
Thanks!
@rob_m
3 жыл бұрын
Phil - the question that we all want answered. Did you drink your water? Your reminder was at 10am and it's the afternoon and you didn't hide the reminder. We're worried about you Phil, please drink your water! ;)
@PhilSmy
3 жыл бұрын
Thank you for your concern! Alert goes off once an hour - drink a glass of water an hour!
@rob_m
3 жыл бұрын
@@PhilSmy good man! Great content too 🙏
@volodymyrshabaldas6349
3 жыл бұрын
Thanks a lot!
@PhilSmy
3 жыл бұрын
My pleasure!
@kaysiz-zw
7 ай бұрын
I am curious on performance, is there need to prefetch the relationships inside the `as_indexed_json` method, to avoid N+1?
@rob_m
3 жыл бұрын
Hey Phil.. In the purchase_order_denormalizer you created a fulfilment_fee key which was a combination of a quantity * cost of some of the order items. This logic now resides in your denormalizer file used to generate an order_items_info blob specific to elastic search. In terms of DRY'ing up this code later, it feels to me like this fulfilment_fee logic would be accessed numerous times within the application and would be better off being at the business logic level of your app. Do you think this would be best housed as a method on the purchase_order model? You could then call the purchase_order.fulfillment_amont within the denormalizer file to access it?
@PhilSmy
3 жыл бұрын
Interesting point! I guess it could be a method in either place. In theory all displaying of data comes through the denormalizer...but I see what you are saying. For me, the model is the raw, uncalculated (as much as possible) data, and the denormalized data is the representation that we would use on the site. If we start going through my code looking to DRY it up we're going to be here all day! :-)
@al-mokhtar_
3 жыл бұрын
btw what the news tab you have in chrome ? (default tab)
@PhilSmy
3 жыл бұрын
It's a cool thing called Toby. It lets you create bookmark collections. I guess that's what you're talking about! Thanks for watching!
@Dr.BenjiBuddy
Жыл бұрын
Great video! Never seen denormalizers but they seem to do the same thing as serializers?... Is there a particular reason for chosing denomalizers over serializers? Is it a lot faster since serializers need to format the data for each request, whereas denomalizers format the data before storing it in elasticsearch??... Or is that not how it works?
@PhilSmy
Жыл бұрын
I think it is just wording, but, a `serializer` simply takes a record and writes it out (serializes it!) to something (either a database or a file). In essence when you write a model to the database you are 'serializing' it. A `denormalizer` takes data from SEVERAL MODELS and combines it all together (denormalizes it) into a single record. Therefore denormalized data is a lot bigger as it contains 'duplicated' data and you are losing the concept of an Object Relationship Model. BUT the plus side is that when you query something that has stored denormalized data - if you denormalize it right - you have everything you need - BAM! - in one call. Hope that helps!
@Dr.BenjiBuddy
Жыл бұрын
@@PhilSmy thanks for the extensive explanation, it certainly helped 👍🏻
Пікірлер: 44