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

Why load all schemas during a request? #222

Closed
ziyadparekh opened this issue Feb 3, 2016 · 2 comments
Closed

Why load all schemas during a request? #222

ziyadparekh opened this issue Feb 3, 2016 · 2 comments

Comments

@ziyadparekh
Copy link

https://github.com/ParsePlatform/parse-server/blob/master/Schema.js#L64

This will find all schemas from the _SCHEMA collection. Is there a reason to load all of them instead of the one that corresponds to the class name in the request ?

@ajamaica
Copy link

ajamaica commented Feb 3, 2016

I think it is because it needs to print the json for the schema when the dashboard on the site was about to draw. If you see the actual website they print that same contents to a big template variable that the dashboard uses as base for making the data tables.

@drew-gross
Copy link
Contributor

This definitely not ideal and it's something we will revisit as we continue to work on schemas.

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

3 participants