Blog
Deep dives into backend engineering, cloud infrastructure, and software design patterns I work with.
So, here my suggestion is to retrieve bulk data using multiple threads asynchronously and bind them together after complete the retrieval mechanism. I will show you how can we achieve this using Java. For this first you have to define number of thread we need to use. We can use a executor to adjust the thread pool size.
private CompletableFuture<User> retrieveUser(ExecutorService executor) { return CompletableFuture.supplyAsync(() -> userRepository.findById(id).orElseThrow(() -> new RuntimeException()), executor);
I have an experience with updating a user profile with checking unique email and phone number. In that case I want to get my previous profile details and want to set new updated object details. But after I set the new object details to my retrieved previous object, my previous object setting with new data. So I have a way to again recall the previous data object using a database call.
@Getter @Setter public class DomainEntity {
First we need to have latest react version and Material UI version up to 5. Then in here I’m planning to work on Material UI x-data-grid version 6. In here I’m using Typescript to show the coding examples.
import React from 'react'; import { DataGrid, DataGridProps, GridToolbar } from '@mui/x-data-grid'; const PAGE_SIZE = 10;