Comments (4)
deepak vohra commented
Doesn't the value set with setStale(Stale stale) on Query effect the View?
from spring-data-couchbase.
Sandra Gómez commented
Is there a way to use findAll() method and set the stale param to False to retrieve the objects updated?
As a workaround, I am currently using the template as:
couchbaseTemplate.findByView("designdoc", "all", new Query().setStale(Stale.FALSE), InventoryServer.class);
but I think it could be great if there is a way to use findAll() and allow to set the value of stale param as well.
from spring-data-couchbase.
Michael Nitschinger commented
Hello Sandra,
that is exactly the enhancement of the ticket. and yes, your workaround is good
from spring-data-couchbase.
Michael Nitschinger commented
We now have dynamic queries, so you can just add our own method to the repository. All of those custom methods accept an optional param like:
@View
(designDocument = "user", view = "byUsername")
Iterable<User> findByUsername(Query query)
and when you query it you can run it like:
Query q = new Query();
q.setStale(..);
q.setKey("foobar")
repo.findByUsername(q);
from spring-data-couchbase.
Related Issues (20)
- Release 5.3 M2 (2024.0.0)
- Reintroduce Javadoc legacy mode
- Remove Querydsl and `com.couchbase` split packages HOT 2
- How to set the different config for different environments while using AbstractCouchbaseConfiguration HOT 2
- Bug: Regression - Spring Boot 3.2.3 app fails to compile with Spring Data Couchbase HOT 1
- issue with querydsl HOT 2
- "TypeAlias" does't work along with abstraction HOT 12
- update Couchbase Java SDK to 3.6.0 in main
- javax.inject dependency HOT 1
- Release 5.1.11 (2023.0.11)
- Release 5.2.5 (2023.1.5)
- Release 5.3 RC1 (2024.0.0)
- java.lang.NoClassDefFoundError: javax/inject/Inject: javax.inject.Inject when upgrading to Spring Boot 3.2.4 HOT 7
- Auto Index Creation creates indexes under _default scope HOT 1
- Sorry for the delay @mikereiche , Thanks for all the clarification.
- Compilation error due to QueryDSL annotation processor in Spring Data Couchbase 5.2.4 HOT 4
- Release 5.1.12 (2023.0.12)
- Release 5.2.6 (2023.1.6)
- Release 5.3 GA (2024.0.0)
- Runtime error when calling DeleteAllById(Iterable<T> list) if the repository extends DynamicProxyable
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spring-data-couchbase.