Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 | 31 |
Tags
- onLayout
- Coroutine
- CustomView
- recyclerview
- Navigation
- notification
- lifecycle
- Algorithm
- DataBinding
- CoordinatorLayout
- HTTP
- LiveData
- Android
- 코틀린
- AppBarLayout
- ViewModel
- Behavior
- View
- sqlite
- 안드로이드
- 알고리즘
- onMeasure
- room
- activity
- kotlin
- hilt
- 알림
- BOJ
- CollapsingToolbarLayout
- 백준
Archives
- Today
- Total
목록복잡한 데이터 (1)
개발일지

Minimal Entity로 선언된 객체에 A, B, C, D, E 5개의 변수가 있고, 5개가 Room에 저장됐다고 가정하자 이 때 필요한 정보는 A, B 두개뿐인데 A, B, C, D, E 5개 전부 불러와서 변수에 저장하면 리소스가 낭비된다. => Minimal한 객체를 만들고 Minimal로 받아오자 ToDo @Entity( foreignKeys = [ ForeignKey( entity = Drawer::class, parentColumns = ["name"], childColumns = ["drawerName"], onDelete = ForeignKey.CASCADE, onUpdate = ForeignKey.CASCADE ) ] ) data class ToDo( @PrimaryKey(autoGe..
Android (안드로이드)/Room
2021. 1. 17. 03:54