ElasticSearch and Ruby on Rails - Part 1

  Рет қаралды 11,026

Phil Smy

Phil Smy

Күн бұрын

Пікірлер: 45
@DouglasCrawford-p9k
@DouglasCrawford-p9k 6 күн бұрын
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!
@codemuster
@codemuster 3 жыл бұрын
Nice practical approach Phil, thanks for sharing.
@PhilSmy
@PhilSmy 3 жыл бұрын
Thanks for watching!
@danielnottingham2969
@danielnottingham2969 2 жыл бұрын
Congratulations for the content! I learned a lot from your class. Greetings from Brazil!
@PhilSmy
@PhilSmy 2 жыл бұрын
Thank you very much!
@cherryramatis2508
@cherryramatis2508 2 жыл бұрын
Sempre bom ver brasileiros, eh nois ❤
@vitormil
@vitormil 2 жыл бұрын
Amazing content Phil, thanks for sharing
@PhilSmy
@PhilSmy 2 жыл бұрын
Glad you enjoyed it!
@enjoythements777
@enjoythements777 3 жыл бұрын
Great rails video as always! Pls next time increase the font of your terminal and vscode
@enjoythements777
@enjoythements777 3 жыл бұрын
Cool. Resolved :)
@PhilSmy
@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.
@muhammadgulsher2089
@muhammadgulsher2089 8 ай бұрын
Thanks for sharing Phil this gonna help me a lot in my next project
@PhilSmy
@PhilSmy 8 ай бұрын
Glad to help
@kaysiz-zw
@kaysiz-zw 10 ай бұрын
I am curious on performance, is there need to prefetch the relationships inside the `as_indexed_json` method, to avoid N+1?
@midwestcoast4381
@midwestcoast4381 3 жыл бұрын
Great stuff, looking forward to more videos
@PhilSmy
@PhilSmy 3 жыл бұрын
Thanks for watching! And more shall come!
@juanandrew1356
@juanandrew1356 2 жыл бұрын
this video is great for learning! hopefully I can be mentored by you!
@PhilSmy
@PhilSmy 2 жыл бұрын
Thank you so much!
@Dr.BenjiBuddy
@Dr.BenjiBuddy 2 жыл бұрын
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
@PhilSmy 2 жыл бұрын
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
@Dr.BenjiBuddy 2 жыл бұрын
@@PhilSmy thanks for the extensive explanation, it certainly helped 👍🏻
@kaysiz-zw
@kaysiz-zw 10 ай бұрын
Very good intro and super useful
@rob_m
@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
@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! :-)
@sanan4884
@sanan4884 Жыл бұрын
Loved it!! :)
@al-mokhtar_
@al-mokhtar_ 3 жыл бұрын
new sub phil thanks for sharing this great tuto
@PhilSmy
@PhilSmy 3 жыл бұрын
Thanks for the sub!
@julianopaulo
@julianopaulo 3 жыл бұрын
Great video
@PhilSmy
@PhilSmy 3 жыл бұрын
Thanks!
@CerFrus
@CerFrus 3 жыл бұрын
Great video! thanks for sharing
@adancondori5565
@adancondori5565 2 жыл бұрын
Exelente Video,
@al-mokhtar_
@al-mokhtar_ 3 жыл бұрын
btw what the news tab you have in chrome ? (default tab)
@PhilSmy
@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!
@shabbirsaifee7497
@shabbirsaifee7497 3 жыл бұрын
loved it!!
@PhilSmy
@PhilSmy 3 жыл бұрын
Thank you!
@canofsteam
@canofsteam 3 жыл бұрын
Very helpful
@PhilSmy
@PhilSmy 3 жыл бұрын
Thanks!
@volodymyrshabaldas6349
@volodymyrshabaldas6349 3 жыл бұрын
Thanks a lot!
@PhilSmy
@PhilSmy 3 жыл бұрын
My pleasure!
@rob_m
@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
@PhilSmy 3 жыл бұрын
Thank you for your concern! Alert goes off once an hour - drink a glass of water an hour!
@rob_m
@rob_m 3 жыл бұрын
@@PhilSmy good man! Great content too 🙏
@yaroslavbozhak9107
@yaroslavbozhak9107 3 жыл бұрын
Thanks!
@PhilSmy
@PhilSmy 3 жыл бұрын
Welcome!
ElasticSearch and Ruby on Rails - Part 2 - Tips
27:36
Phil Smy
Рет қаралды 3,6 М.
Жездуха 42-серия
29:26
Million Show
Рет қаралды 2,6 МЛН
She wanted to set me up #shorts by Tsuriki Show
0:56
Tsuriki Show
Рет қаралды 8 МЛН
«Жат бауыр» телехикаясы І 26-бөлім
52:18
Qazaqstan TV / Қазақстан Ұлттық Арнасы
Рет қаралды 434 М.
Debugging Rails
31:31
Phil Smy
Рет қаралды 5 М.
Setup A Ruby on Rails 7 API With React JS
15:11
Deanin
Рет қаралды 43 М.
How to use Meilisearch in Rails
20:10
GoRails
Рет қаралды 7 М.
ElasticSearch что это такое - ElasticSearch уроки
8:46
Live Coding School
Рет қаралды 108 М.
Elasticsearch anti-patterns and bad practices to be aware of
9:17
George Bridgeman
Рет қаралды 31 М.
Background Processing with Rails, Redis and Sidekiq
15:00
Decypher Media
Рет қаралды 61 М.
Rails Tutorial | Action Cable Basics in Rails 6
20:07
Techmaker Studio
Рет қаралды 21 М.
Authentication basics with Ruby on Rails
46:17
CJ Avilla (cjav_dev)
Рет қаралды 13 М.