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

[FEATURE] Implement Caching with @Cacheable Annotation in Service Layer for Entities #68

Closed
1 task done
shreya5653 opened this issue Oct 8, 2024 · 11 comments
Closed
1 task done
Assignees
Labels
enhancement New feature or request gssoc GirlScript Summer Of Code gssoc-ext hacktoberfest hacktoberfest-accepted level3 GirlScript Summer Of Code - 35 points status: ready for dev You can asked for this issue to be assigned (if not already assigned)

Comments

@shreya5653
Copy link
Contributor

shreya5653 commented Oct 8, 2024

Is this feature already requested?

  • I have checked "open" and "closed" issues, and this is not a duplicate.

Problem or Missing Functionality

the service layer for several entities lacks caching mechanisms, which can lead to redundant database queries and decreased system performance. By implementing the @Cacheable annotation in the service layer, we can enhance the application's efficiency by reducing the load on the database and improving response times for frequently accessed data. This change would address performance bottlenecks, particularly in scenarios involving repetitive data retrieval operations.

Feature Description

I suggest adding the @Cacheable annotation to the service layer of various entities to implement caching for frequently accessed data, which will significantly reduce database queries and improve application performance. This enhancement will lead to faster response times for users, increasing overall satisfaction, and will reduce the load on the database, improving scalability and reliability as user traffic increases. Implementing this feature will ultimately create a more efficient application and a better user experience.

Screenshots

No response

Would you like to work on this feature?

Yes

Implementation Plan

To implement the @Cacheable annotation for various entities in the service layer, I will identify the relevant entities, add the necessary caching dependency, configure caching settings, annotate service methods with @Cacheable, and then test and optimize the functionality to improve application performance.

@shreya5653 shreya5653 added the status: awaiting triage Waiting for maintainers to verify (please do not start work on this yet) label Oct 8, 2024
Copy link

github-actions bot commented Oct 8, 2024

👋 Thank you @shreya5653 for raising an issue! We appreciate your effort in helping us improve. Our team will review it shortly. Stay tuned!

@ajaynegi45 ajaynegi45 added enhancement New feature or request hacktoberfest-accepted hacktoberfest status: ready for dev You can asked for this issue to be assigned (if not already assigned) gssoc GirlScript Summer Of Code gssoc-ext level3 GirlScript Summer Of Code - 35 points and removed status: awaiting triage Waiting for maintainers to verify (please do not start work on this yet) labels Oct 8, 2024
@ajaynegi45
Copy link
Owner

Is this feature already requested?

  • I have checked "open" and "closed" issues, and this is not a duplicate.

Problem or Missing Functionality

the service layer for several entities lacks caching mechanisms, which can lead to redundant database queries and decreased system performance. By implementing the @Cacheable annotation in the service layer, we can enhance the application's efficiency by reducing the load on the database and improving response times for frequently accessed data. This change would address performance bottlenecks, particularly in scenarios involving repetitive data retrieval operations.

Feature Description

I suggest adding the @Cacheable annotation to the service layer of various entities to implement caching for frequently accessed data, which will significantly reduce database queries and improve application performance. This enhancement will lead to faster response times for users, increasing overall satisfaction, and will reduce the load on the database, improving scalability and reliability as user traffic increases. Implementing this feature will ultimately create a more efficient application and a better user experience.

Screenshots

No response

Would you like to work on this feature?

Yes

Implementation Plan

To implement the @Cacheable annotation for various entities in the service layer, I will identify the relevant entities, add the necessary caching dependency, configure caching settings, annotate service methods with @Cacheable, and then test and optimize the functionality to improve application performance.

Hi @shreya5653,

Thank you for expressing your interest in working on this issue. I'm delighted to inform you that I have assigned this issue to you. Your willingness to contribute to our project is much appreciated.

Before making any contributions, please read the Readme.md file carefully to better understand the project's goals and purpose. This will give you clarity on our mission. Also, make sure to review the Contributing.md file, which contains important guidelines to make the contribution process smoother, especially for newcomers.

Feel free to start working, and if you have any questions or need assistance during the process, please don't hesitate to reach out.

@Shalinis19137
Copy link

I would like to work on this project ,Can you assign me this issue under Gssoc-ext 2024.

@shreya5653
Copy link
Contributor Author

@ajaynegi45 Sure! Thank you.

@ajaynegi45
Copy link
Owner

I would like to work on this project ,Can you assign me this issue under Gssoc-ext 2024.

Hi @Shalinis19137,

Thank you for expressing your interest in working on this issue. However, this issue is currently being worked on by another contributor, @shreya5653. You can explore other issues in our repository or check out our other projects under the GirlScript Summer of Code and Hacktoberfest. Here are the links to explore: https://bento.me/codiescoder

According to your profile, I suggest you to work on this issue ajaynegi45/Uttarakhand-Culture-NewUI#19

Feel free to reach out if you have any questions or need guidance on where to start. We're excited to have your contributions!

@Shalinis19137
Copy link

Thanks alot sir.

@shreya5653
Copy link
Contributor Author

@ajaynegi45 I have a doubt. As per my understanding, members is a separate table in the database. But in the entity class of members, it is not annotated as a Table. If I am correct can I raise a new issue for that ?
Screenshot (92)

@ajaynegi45
Copy link
Owner

@ajaynegi45 I have a doubt. As per my understanding, members is a separate table in the database. But in the entity class of members, it is not annotated as a Table. If I am correct can I raise a new issue for that ? Screenshot (92)

Hi @shreya5653,

Thank you for raising your doubt. You're correct that the Members class is an entity, and the @Entity annotation specifies that it maps to a table in the database. While the @Table annotation is optional, it can be explicitly added to specify the table name or other configurations. In this case, the @Entity annotation is sufficient as it tells JPA to map this class to a table, and by default, it will use the class name (Members) as the table name unless specified otherwise.

@shreya5653
Copy link
Contributor Author

@ajaynegi45 I have a doubt. As per my understanding, members is a separate table in the database. But in the entity class of members, it is not annotated as a Table. If I am correct can I raise a new issue for that ? Screenshot (92)

Hi @shreya5653,

Thank you for raising your doubt. You're correct that the Members class is an entity, and the @Entity annotation specifies that it maps to a table in the database. While the @Table annotation is optional, it can be explicitly added to specify the table name or other configurations. In this case, the @Entity annotation is sufficient as it tells JPA to map this class to a table, and by default, it will use the class name (Members) as the table name unless specified otherwise.

okay. Thanks for clearing my doubt

@shreya5653
Copy link
Contributor Author

@ajaynegi45 I started working on the project and have already raised a PR. Can you please assign the issue to me

@shreya5653
Copy link
Contributor Author

@Guhapriya01 Please assign this to me and give labels to PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request gssoc GirlScript Summer Of Code gssoc-ext hacktoberfest hacktoberfest-accepted level3 GirlScript Summer Of Code - 35 points status: ready for dev You can asked for this issue to be assigned (if not already assigned)
Projects
None yet
Development

No branches or pull requests

4 participants