Skip to content

Slow query #76

Description

@harding13

Hi all

i'm using firebase-php to make a query against a firebase db where i stored chat data.

the structure is a thing like this

chat
----chat_ID
------------node_ID

when i search into a chat (with one or many children) with a code like this

$firebase = new \Firebase\FirebaseLib(DEFAULT_URL, DEFAULT_TOKEN);
$value = $firebase->get('/chat/'.$chat, array('orderBy' => '"status"', 'equalTo' => '"unread"'));

the query needs almost 700ms to get a result (even if there is only one node)

I think it's too much... or not?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions