Skip to content
This repository has been archived by the owner on Apr 7, 2021. It is now read-only.

Bug: Complex search queries cause primary key to be too long #85

Open
roark opened this issue Jun 22, 2018 · 1 comment
Open

Bug: Complex search queries cause primary key to be too long #85

roark opened this issue Jun 22, 2018 · 1 comment

Comments

@roark
Copy link

roark commented Jun 22, 2018

Hi Deepstream Team,

I've been integrating this provider and came across an issue in regards to query length. Once I started building slightly more complex queries (more than 5 conditions) I began to see:

storage:ReqlQueryLogicError: Primary key too long (max 127 characters)

It appears the creation of a list's primary id is composed of the stringified query. Therefore, with any longer query we begin bumping into issues with the 127 max allowed by RethinkDB.

Do you have any ideas on how to best handle this? Possibly rather than using the stringified query as the list's primary id maybe it should be a SHA of it?

@roark
Copy link
Author

roark commented Jun 22, 2018

I tried using the recordOptions => { persist: false } on my initial call from the client.

ds.record.getList( 'search?' + queryString, { persist: false } )

But unfortunately to no avail.

It seems like this may have been a decent solution, since I don't personally need the list to persist in storage.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant