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 |
Tags
- activity
- room
- hilt
- CustomView
- kotlin
- BOJ
- 안드로이드
- Behavior
- Android
- CollapsingToolbarLayout
- 알고리즘
- ViewModel
- 알림
- DataBinding
- HTTP
- 백준
- Navigation
- CoordinatorLayout
- onMeasure
- recyclerview
- 코틀린
- notification
- View
- Coroutine
- sqlite
- onLayout
- Algorithm
- LiveData
- AppBarLayout
- lifecycle
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