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

Only generate schema on initial request #198

Open
thompson-tomo opened this issue Apr 21, 2024 · 2 comments
Open

Only generate schema on initial request #198

thompson-tomo opened this issue Apr 21, 2024 · 2 comments

Comments

@thompson-tomo
Copy link

thompson-tomo commented Apr 21, 2024

Why do we need this improvement?

To improve performance of the middleware the schema generation should only occur on initial request at which point the schema should either be cached to file or more likely memory.

How will this change help?

Decrease computation needed hence an improvement in performance.

How could it be implemented/designed?

  • when request for document comes in, cache is checked. If present cached document is used otherwise generation occurs.

🚧 Breaking changes

No

Additional info

N/a

@yurvon-screamo
Copy link
Collaborator

Hi, check #187. I`m start implementing this.

PS: pls, use issue template in future)

@thompson-tomo
Copy link
Author

As mentioned there is issues with the templates where they are putting them in the wrong project hence the manual creation.

Please reopen this issue as what I am asking for is not addressed by the mentioned issue, I want it to work as it is now except generation only occurs on initial request at which point it is cached.

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

2 participants