Hey thanks for posting this video! I like the neat seeding trick and tips for indexing custom ES fields. I didn't know about Kibana until watching your video😅 Hope you're doing well and happy holidays!
@codemuster3 жыл бұрын
Nice practical approach Phil, thanks for sharing.
@PhilSmy3 жыл бұрын
Thanks for watching!
@danielnottingham29692 жыл бұрын
Congratulations for the content! I learned a lot from your class. Greetings from Brazil!
@PhilSmy2 жыл бұрын
Thank you very much!
@cherryramatis25082 жыл бұрын
Sempre bom ver brasileiros, eh nois ❤
@vitormil2 жыл бұрын
Amazing content Phil, thanks for sharing
@PhilSmy2 жыл бұрын
Glad you enjoyed it!
@enjoythements7773 жыл бұрын
Great rails video as always! Pls next time increase the font of your terminal and vscode
@enjoythements7773 жыл бұрын
Cool. Resolved :)
@PhilSmy3 жыл бұрын
Yes, in a couple videos I got all excited and forgot to check beforehand. Now I have a pre-flight checklist! Thanks for watching.
@muhammadgulsher20898 ай бұрын
Thanks for sharing Phil this gonna help me a lot in my next project
@PhilSmy8 ай бұрын
Glad to help
@kaysiz-zw10 ай бұрын
I am curious on performance, is there need to prefetch the relationships inside the `as_indexed_json` method, to avoid N+1?
@midwestcoast43813 жыл бұрын
Great stuff, looking forward to more videos
@PhilSmy3 жыл бұрын
Thanks for watching! And more shall come!
@juanandrew13562 жыл бұрын
this video is great for learning! hopefully I can be mentored by you!
@PhilSmy2 жыл бұрын
Thank you so much!
@Dr.BenjiBuddy2 жыл бұрын
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?
@PhilSmy2 жыл бұрын
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.BenjiBuddy2 жыл бұрын
@@PhilSmy thanks for the extensive explanation, it certainly helped 👍🏻
@kaysiz-zw10 ай бұрын
Very good intro and super useful
@rob_m3 жыл бұрын
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?
@PhilSmy3 жыл бұрын
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! :-)
@sanan4884 Жыл бұрын
Loved it!! :)
@al-mokhtar_3 жыл бұрын
new sub phil thanks for sharing this great tuto
@PhilSmy3 жыл бұрын
Thanks for the sub!
@julianopaulo3 жыл бұрын
Great video
@PhilSmy3 жыл бұрын
Thanks!
@CerFrus3 жыл бұрын
Great video! thanks for sharing
@adancondori55652 жыл бұрын
Exelente Video,
@al-mokhtar_3 жыл бұрын
btw what the news tab you have in chrome ? (default tab)
@PhilSmy3 жыл бұрын
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!
@shabbirsaifee74973 жыл бұрын
loved it!!
@PhilSmy3 жыл бұрын
Thank you!
@canofsteam3 жыл бұрын
Very helpful
@PhilSmy3 жыл бұрын
Thanks!
@volodymyrshabaldas63493 жыл бұрын
Thanks a lot!
@PhilSmy3 жыл бұрын
My pleasure!
@rob_m3 жыл бұрын
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! ;)
@PhilSmy3 жыл бұрын
Thank you for your concern! Alert goes off once an hour - drink a glass of water an hour!