Don't Make THIS Mistake With Room & Databases on Android

  Рет қаралды 12,580

Philipp Lackner

Philipp Lackner

Күн бұрын

Пікірлер: 49
@efeegbevwie9467
@efeegbevwie9467 Жыл бұрын
Very important video. Also, Instead of doing a loop and calling your Dao function multiple times, If you have your Dao function that takes a List in an insert operation, I believe room will automatically run this insert in a transaction.
@Akshaykumar-xr9yj
@Akshaykumar-xr9yj Жыл бұрын
I was also wondering about same problem while working with databases. But I ignored it becuase probablity of getting such problem is way less but it might happen. This video really helped me. Thank you
@hesham4744
@hesham4744 Жыл бұрын
oh my god , believe it or not i just faced this problem and was confessed what was the issue and now i found you talking about it , thanks so much , keep up the great work!
@geanbrandao4987
@geanbrandao4987 Жыл бұрын
I've been following your videos for a long time and I love them all. Thank you
@tiagosutter8821
@tiagosutter8821 Жыл бұрын
Hey Philipp, i just got your course on testing, thanks for the great content
@PhilippLackner
@PhilippLackner Жыл бұрын
Happy learning!🙌
@SiamakAshrafi
@SiamakAshrafi Жыл бұрын
By far the best Android information on KZbin 🙂
@abada-s
@abada-s Жыл бұрын
Very beneficial, I know transaction previously but I forgot to use it in some app, the performance has extremely improved, Thanks.
@smreha
@smreha Жыл бұрын
Happy Teacher's day Philip 😊
@amiralichangizi1611
@amiralichangizi1611 Жыл бұрын
You can also use transaction scope as well
@monjuremowla8361
@monjuremowla8361 Жыл бұрын
Thanks for making our life easier with your mentorship .
@michaelk7942
@michaelk7942 Жыл бұрын
Thanks Philipp! Keep up the good work
@PhilippLackner
@PhilippLackner Жыл бұрын
Thanks!
@abacaabaca8131
@abacaabaca8131 Жыл бұрын
I think i have to learn more about how android handle user input and what is the state it currently in first. I think i need to take a look on ViewModel and View Binding first, because in Android, the state is unidirectional. And maybe create a second background thread. Because usually my program just printed out something into the console. But when I have to handle user input, it's different kind of story. For example, if the user enter an invalid input, i need to create a loop that points to the first state so it won't crash. With a combination of while loop and finite state machine i was able to do that, but now in android, in what type of interface I need to implement and at what method i should override.
@ArthurKhazbs
@ArthurKhazbs Жыл бұрын
I think Philipp can read my mind: he always releases videos on Android development challenges right when I'm trying to solve them in my head
@h_o_l_m_i
@h_o_l_m_i Жыл бұрын
Is @Transaction annotation works outside of DAO? Here you combine two inserts (Event and Attendees) in EvenDao and it is look like broke single responsibility pronciple. If @Transaction works on other level it is better to move this to usecase/repository/interactor level to be Dao related only one entity
@coalacorey
@coalacorey Жыл бұрын
I'd love an answer to that as well. The documentation says "Marks a method in a Dao class as a transaction method" about @Transaction. I've annotated several methods in my repository with the annotation and now I'm not sure if it is doing what I expect it to do. 🧐
@manshalkhatri9289
@manshalkhatri9289 Жыл бұрын
Very Useful Tip
@vibovitold
@vibovitold Жыл бұрын
Performing the operation within the viewModelScope is already a code smell. Why would a DB operation be tied to the life scope of a certain screen? If some data is supposed to be persisted, we shouldn't rely on the screen being alive for it to complete
@serlok4688
@serlok4688 Жыл бұрын
Hello Philip, would you consider selling the course prices more affordable in countries like turkey as steam does? I want to take your courses but as a student it is quite difficult for me to afford.
@mohammadalighezelbashyan3446
@mohammadalighezelbashyan3446 Жыл бұрын
خیلی عالی بود ❤
@hossamqandel5638
@hossamqandel5638 Жыл бұрын
Unfortunately your testing course is so expensive for the people who live in Egypt
@androidprabal
@androidprabal Жыл бұрын
Same in India also.
@DeceptiveRealities
@DeceptiveRealities 11 ай бұрын
This is all well and good, but what is not covered is that you need to decide what to do if the transaction does fail. You can't just leave it ignored. If you are pulling the data from some outside source then you would need to ask the source to resend you the information that is now missing because the transaction failed. There is far more to this than this otherwise excellent video addresses.
@ghZTrikz
@ghZTrikz Жыл бұрын
good example, to know and understand it requires skills from databases, +1, start to do like that
@hamzagattal7802
@hamzagattal7802 Жыл бұрын
We need a new vedeo about dagger/hilt ksp migration
@PhilippLackner
@PhilippLackner Жыл бұрын
Coming
@mahmoudabdallah7120
@mahmoudabdallah7120 Жыл бұрын
Based on documentation, dagger and hilt are not yet suppressed. Maybe their is a workaround
@hamzagattal7802
@hamzagattal7802 Жыл бұрын
@@mahmoudabdallah7120 dagger 2.48 has alpha ksp support
@germenwong
@germenwong Жыл бұрын
Hello brother, I joined Discord but cannot communicate on the channel. Can you tell me why
@tuhinbhowmick8424
@tuhinbhowmick8424 Жыл бұрын
Wht if the transactions are paired up with embedded objects and relations , we can then directly create a event with attendees and its too throw an error if @Transaction is not provided
@PhilippLackner
@PhilippLackner Жыл бұрын
Yes, the concept is the same :)
@glooglee4386
@glooglee4386 7 ай бұрын
guys i need to learn multiple table database relations that use foreign key, do you guys have reccomendations for a tutorial that i can learns ?
@tusharbhatia6777
@tusharbhatia6777 Жыл бұрын
Can anyone tell me is this new version of Android studio?the UI seems different
@bruhisbruh000
@bruhisbruh000 Жыл бұрын
they introduced a new experimental ui in the latest version , you can still use the old one
@tusharbhatia6777
@tusharbhatia6777 Жыл бұрын
How can I use the new one shown in video?
@lukalukovic5082
@lukalukovic5082 Жыл бұрын
@@tusharbhatia6777 settings -> New UI
@nz-andrey
@nz-andrey Жыл бұрын
Settings -> Appearance & Behaviour -> New UI
@tusharbhatia6777
@tusharbhatia6777 Жыл бұрын
Thanks
@icodethis
@icodethis Жыл бұрын
Goat
@hrc2514
@hrc2514 Жыл бұрын
Great !! Your automated test course is amazing I will recommend my friend they enrolled he very happy with that! ❤❤❤
@PhilippLackner
@PhilippLackner Жыл бұрын
Happy learning!🙌
@TheTuxtrons
@TheTuxtrons Жыл бұрын
Im a simple man I see dont make this mistake I click
@NaVarioneq
@NaVarioneq Жыл бұрын
More clickbaity thumbnail and title. Please
@PhilippLackner
@PhilippLackner Жыл бұрын
Get ready for the next one 😎
#behindthescenes @CrissaJackson
0:11
Happy Kelli
Рет қаралды 27 МЛН
Непосредственно Каха: сумка
0:53
К-Media
Рет қаралды 12 МЛН
Don't Make These 2 Mistakes With Lists in Kotlin
9:53
Philipp Lackner
Рет қаралды 13 М.
Nerding Out On Okio with Jesse Wilson
1:00:53
Android Worldwide
Рет қаралды 2,3 М.
95% Don't Understand THIS About Coroutines (Main-Safety)
9:38
Philipp Lackner
Рет қаралды 31 М.
Domain-Driven Design: The Last Explanation You'll Ever Need
21:05
Software Developer Diaries
Рет қаралды 15 М.
ViewModels & Configuration Changes - Android Basics 2023
18:46
Philipp Lackner
Рет қаралды 138 М.
Practical room migrations
5:55
Android Developers
Рет қаралды 5 М.
#behindthescenes @CrissaJackson
0:11
Happy Kelli
Рет қаралды 27 МЛН