Skip to main content
1 vote
1 answer
57 views

I'm trying to connect my Spring Boot application (using spring-boot-starter-data-mongodb) to a MongoDB instance within a shared Docker network managed by docker-compose. The connection is failing, and ...
SidaliFetoumi's user avatar
0 votes
0 answers
72 views

I have spring app which uses mongoRepository. I want to have an integration to test my repository by using @DataMongoTest. For some reason my test tries to connect localhost for mongo and gets timeout....
user1474111's user avatar
  • 1,536
1 vote
1 answer
86 views

I followed the Spring's documentation to see traces in Mongodb by adding the bean @Bean MongoClientSettingsBuilderCustomizer mongoMetricsSynchronousContextProvider(ObservationRegistry registry) { ...
2shar's user avatar
  • 121
0 votes
1 answer
79 views

First disclaim: I've already seen these topics ==> Spring MongoRepository very slow to convert POJO ==> performance issue on Spring Data Mongodb I clearly have a similar problem, but nothing in ...
Antoine's user avatar
  • 191
0 votes
1 answer
362 views

I'm trying to set the timeout settings for Mongo connection in my Springboot app but they are not working as intended. I'm not sure if the issue is with the configuration I have or maybe my test is ...
RKodakandla's user avatar
  • 3,502
0 votes
1 answer
186 views

I understand that when using transactions in MongoDB with the WiredTiger storage engine, the isolation level is fixed to snapshot. If I use @Transactional(readOnly = true), it allows consistent reads ...
backtony's user avatar
0 votes
0 answers
44 views

I just started using spring data mongodb aggregation query. fun findRoot(): MarkdownMongoDocument? { val aggregation = Aggregation.newAggregation( MarkdownMongoDocument::class.java, ...
SageJustus's user avatar
  • 1,212
0 votes
0 answers
281 views

I am using below mongo aggregation pipeline in spring boot java to update document in mongodb. Below is the raw mongo query that works fine when executed directly on mongodb db.lock.aggregate([ {...
Reena Upadhyay's user avatar
0 votes
0 answers
45 views

I need to migrate from single database to two database, and my project have a lookup aggregation like LookupOperation lookupOperation = LookupOperation.newLookup() .from("race")...
Man Man Yu's user avatar
0 votes
1 answer
228 views

I have a list of objects of type MyObject, and I wish to insert an object if its not present in the mongo collection, or update if it does. MyObject contains multiple fields, but I want to update if ...
ranban282's user avatar
  • 186
0 votes
1 answer
125 views

I've found some strange behavior of MongoRepository saveAll(). Here's the entity class and repository: @Document public class Entity { @MongoId private String id; ...
Viktor Molokanov's user avatar
0 votes
1 answer
613 views

I have a list of records. Each record needs to have 2 fields: temp(temperature in Celcius) and temp_F(temperature in Fahrenheit). temp field is available in mostly all records. But temp_F is missing ...
Kanhaiya's user avatar
  • 394
0 votes
2 answers
113 views

I need to do an aggregation query , MatchOperation matchOperation = Aggregation.match(new Criteria("age").is(20)); String lookup = "{$lookup: {from: 'race', localField: 'carId',...
Man Man Yu's user avatar
0 votes
1 answer
129 views

I have a school project that needs to support different db at runtime, when only one is selected and is active (a feature to change db after one is selected is not needed). I've been doing some ...
Atram's user avatar
  • 11
0 votes
1 answer
109 views

I want to get by the fastest speed of each car/carId, I have problem in getting/retaining all field when using aggregation in spring mongo . I have check some relatvent in stackoverflow like mongo ...
Man Man Yu's user avatar

15 30 50 per page
1
2 3 4 5
28