You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
데이터의 필드들의 조건을 설정하여 가져와야하는 경우, 파이어베이스의 한계점이 명확했다.
홈페이지의 '전체'탭 에서의 상품들은 '현재 주문중인 상품'들을 보여주기 때문에, ( 주문 종료 날짜 > 현재 날짜 )인 조건이 가장 기본이 된다.
하지만 파이어베이스에서는 where의 조건으로 부등호 비교를 사용 시, 무조건 해당 조건의 필드로 정렬을 해야하기 때문에, 위와 같은 조건에서 신규 등록순으로 상품들을 받아올 수가 없다.
또, where의 조건으로 부등호 비교를 사용시, 여러 필드를 사용할 수 없기 때문에 해당 조건이 필요한 쿼리의 경우도 불가능하게 된다.
(이때문에, 전체 탭의 상품을 주문 상태와 상관 없이 가져오도록 수정함)
사용 구성의 편리성과 유연성을 고려하여 파이어베이스를 선택하였지만, 이러한 이슈들과 검색 기능의 한계 등으로 앞으로 이와 같은 프로젝트에선 파이어베이스를 이용하지 않는 것이 좋을 것 같다.
Beta Was this translation helpful? Give feedback.
All reactions