Skip to main content

All Questions

Filter by
Sorted by
Tagged with
2 votes
0 answers
152 views

Why is the following block not thread safe?

We have a Spring Boot application where we fetch data from a database and keep it in a concurrent Hashmap tempMap. Then we use it to fetch details based on the incoming keys. But keys are in the form ...
Zedark's user avatar
  • 21
1 vote
1 answer
875 views

java11 stream split n of list chunk as arguments

Let's say I have this (Spring boot) code: List<User> userList = userService.selectAll(); <-- this returns 1,000,000 rows customerService.saveBulk(userList).get(); I want to split the list ...
jlc488's user avatar
  • 1,061
0 votes
4 answers
5k views

Conversion of Map<String, String> to List of Objects

Below is what I am trying to achieve. "timezones": [ { "name" : "America/New_York", "label" : "US Eastern Time" }, { ...
Rahul's user avatar
  • 603
0 votes
1 answer
1k views

collect a sequence of paged results ( 776 pages ) from REST API ( JSON response) and insert final result into DB SQL or create csv file

I am consuming a Rest API which is exposing 6212514 rows from SQL Server Database. The response of REST API is JSON which represents the database rows. To call this API REST and get the hole data , I ...
Benhassine Mohamed's user avatar