Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Persisted documentId #104

Open
mattkrick opened this issue Aug 18, 2016 · 1 comment
Open

Persisted documentId #104

mattkrick opened this issue Aug 18, 2016 · 1 comment

Comments

@mattkrick
Copy link
Owner

Instead of sending a query, the query string should be stored on the server and we tell it what parts we want. Since the AST is a tree and it's validated, we'll only have to validate cars, which we can do in cashay. To tell the server what parts we want, we could probably use something like what react used to do with the DOM. 1.4.2.6. Each integer holds 31 flags, true means grab that field. Since theajority of objects have <10 fields, the integers won't exceed 2^10.

@mattkrick
Copy link
Owner Author

Alternatively, I could create a combination map, where every unique combination of things gets a number. Then I look up that number. Thatd be more memory + CPU though.

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

No branches or pull requests

1 participant