분류 전체보기62 Linked List Linked List 여러개의 노드로 이루어진 리스트, 노드는 value 값과 함께 다음값으 주소를 가지고 있다. Java 로 구현 class Node { int data; Node next = null; Node(int d) { this.data = d; } void append(int d) { Node end = new Node(d); Node n = this; while (n.next != null) { n = n.next; } n.next = end; } void delete(int d) { Node n = this; while (n.next != null) { if (n.next.data == d) { n.next = n.next.next; } else { n = n.next; } } } voi.. 2021. 8. 3. firestore 읽기 비용 컬렉션에 존재하는 Document하나를 읽을때마다 읽기 수가 1씩 올라간다. 컬렉션 데이터를 가져오면 가져온 Document 개수만큼 읽기 수가 올라간다고 보면 된다. 쉽게 잘 올라갈 것 같다. 내돈에서 빠져나가니까... 0.1M 번의 읽기에 $0.038 면 저렴한건가? 많은 Document를 읽어야 하는 작업에는 다소 부담스러울듯.... firestore rules에 필터를 걸어도 읽기 수가 올라가는것으로 알고있다. 2020. 12. 11. 이전 1 ··· 8 9 10 11 다음