# Filter many data at the same time from firebase

**URL:** <https://forums.kodeco.com/t/filter-many-data-at-the-same-time-from-firebase/65977>\
**Category:** iOS\
**Created:** [March 30, 2019, 12:58am UTC](https://forums.kodeco.com/t/filter-many-data-at-the-same-time-from-firebase/65977 "2019-03-30T00:58:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![abdallah.nsir](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/abdallah.nsir/32/79544_2.png) [@abdallah.nsir](https://forums.kodeco.com/u/abdallah.nsir)\
**Post date:** [March 30, 2019, 12:58am UTC](https://forums.kodeco.com/t/filter-many-data-at-the-same-time-from-firebase/65977/1 "2019-03-30T00:58:39Z")

</div>

Hi!

I know how to filter data by one thing as filter cars object by **address**

but how could I filter data by two or more things as filter cars object by **address** + **type of car** + **time of work**?

my solution which I think about is getting all data in **array[object]** and with **if** I could filter them  
and save them in **arrayFiltered[object]**!

---

<div class="post-metadata">

**Author:** ![syedfa](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/syedfa/32/101500_2.png) [@syedfa](https://forums.kodeco.com/u/syedfa)\
**Post date:** [March 31, 2019, 9:00pm UTC](https://forums.kodeco.com/t/filter-many-data-at-the-same-time-from-firebase/65977/2 "2019-03-31T21:00:26Z")

</div>

@abdallah.nsir Thanks very much for your question!

I did some digging into your question, and found out that there are different ways of doing this:

1. What you _can_ do is execute one `orderBy().startAt()./endAt()` on the server, pull down the remaining data and filter that in Swift in your app.

2. An interesting third party solution I found to your problem is [QueryBase](https://github.com/davideast/Querybase), an open source tool created precisely to solve your problem 🙂

I hope this helps!

All the best!

---

<div class="post-metadata">

**Author:** ![system](https://s3.amazonaws.com/cdn.raywenderlich.com/community/forum-assets/noun-game-ghost-878668.png) [@system](https://forums.kodeco.com/u/system)\
**Post date:** [September 12, 2019, 4:58pm UTC](https://forums.kodeco.com/t/filter-many-data-at-the-same-time-from-firebase/65977/3 "2019-09-12T16:58:43Z")

</div>

Closed on September 12, 2019, 4:58pm UTC

This topic was automatically closed after 166 days. New replies are no longer allowed.
