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

Opening the file multiple times for parsing. #4

Open
YashMeh opened this issue Mar 6, 2022 · 0 comments
Open

Opening the file multiple times for parsing. #4

YashMeh opened this issue Mar 6, 2022 · 0 comments

Comments

@YashMeh
Copy link
Owner

YashMeh commented Mar 6, 2022

Index service is opening the file 3 times to perform reading body, reading mimetype and reading meta-data.
https://github.com/YashMeh/Falabella/blob/main/service/indexService.go#L38

This may lead to performance bottlenecks as number of files increases because number of concurrent operations on the file will increase dramatically.

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