---
title: "Discussion on \"Memory Cache versus Query with index in Spring Boot\" | Hashnode"
description: "Discussion on \"Memory Cache versus Query with index in Spring Boot\". When working with data, there are two primary approaches: caching and querying. The choice between these methods depends on the specific requirements of the data access scenario. This article explores the situation of finding a user by name, consider..."
url: "https://hashnode.com/posts/memory-cache-versus-query-with-index-in-spring-boot/6548e390414e43d052b8480a"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Memory Cache versus Query with index in Spring Boot](https://namnguyen1202.hashnode.dev/memory-cache-versus-query-with-index-in-spring-boot?utm_source=hashnode&utm_medium=feed)

When working with data, there are two primary approaches: caching and querying. The choice between these methods depends on the specific requirements of the data access scenario. This article explores the situation of finding a user by name, consider...

Nov 6, 2023 · 4 min read · namnguyen1202.hashnode.dev  
Read the article

-   [#java](https://hashnode.com/tag/java)
-   [#springboot](https://hashnode.com/tag/springboot)
-   [#cache](https://hashnode.com/tag/cache)
-   [#benchmark](https://hashnode.com/tag/benchmark)

## Written by

[Nguyen Hoang Nam](https://hashnode.com/@namnguyen1202)

@namnguyen1202 · Ho Chi Minh, Vietnam

  
[View profile](https://hashnode.com/@namnguyen1202)

Back end developer

Back-end Developer, Writer and Book Enthusiast

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
