In this video I explained how we can read millions of records from database table using jdbc in optimized way to improve the performance.
Пікірлер: 26
@ampzamp2 жыл бұрын
gidday mate! nice work, youre the only guy to think of answering such a basic question! well done
@vinkm892 жыл бұрын
Thanks it's really helpful 🙂
@sankar261 Жыл бұрын
Thanks. Nice explanation
@saket59252 жыл бұрын
Really helpful. I got this question for my interview 👍
@SivaReddyJavaTechie Жыл бұрын
Glad it was helpful!
@NIRANJANREDDYBODDIREDDY3 жыл бұрын
Thank you so much sir.. This solution helped me a lot. Thank you ..
@SivaReddyJavaTechie3 жыл бұрын
Thanks Niranjan. Please refer our KZbin channel to your friends and colleagues as it may be helpful for them. Happy learning.
@gsssvr3 жыл бұрын
Good information sir Even same process will work with Postgres and spring boot?
@rabinarayansabat91663 жыл бұрын
Hello Sir, how to achieve it if we are using data jpa, (without getting any outofmemoryerror error)?
@Arun-hu6ud2 ай бұрын
What if i have a records around 4 lakh and 200 columns will this be working or is there any better way to it other than this bcoz we are going show all the data at once in the ui without help of pagination
@jayedfarooqui3550 Жыл бұрын
How to pass a List of values in the SQL, instead of equal to(=) , I want to use "in" clause Eg. List listOfName; listOfName contains hundred of names Select City from country where cust_name in (listOfName);
@PoojaJain-uv6wf Жыл бұрын
Awesome
@SivaReddyJavaTechie Жыл бұрын
Thanks Pooja.
@footballuniverse65223 жыл бұрын
I have a program that reads around 1 million records from a oracle database on cloud but it takes me 2 minutes and a half... should I avoid writing too many logs? Could it slow it down, or is it the network bottlenecking me?
@SivaReddyJavaTechie3 жыл бұрын
Mostly it could be issue with network round trip. Is it stand-alone program? What is the default result set fetch size? To identify the RCA, you can add few more loggers to understand where the time is spending.
@johnchristopher73093 жыл бұрын
I am having 9 crore record, what's the best method to retrieve.. this code is not visible.. can you please share
@RudhinMenon2 жыл бұрын
thanks, but this does not work for db2 for some reason, strange
@karthikeyanr63683 жыл бұрын
How spring JPA will handle million of data? is it possible to fetch millions of records using findall method ? Can you please share your comments. This is interview questions. Thanks to share this kind of videos, this is really helpful to attend the interview.
@PrinceOf343 жыл бұрын
I'm trying to do this with JPA. I use Specification(which can combines many search criteria conditions) for search 1m records. In Repository, needed to implements JPA Specification Excutioner(?). After implemented, findAll now will has new findAll(Specification,Page requestOf(int page, int size)); It took about 0.5s for every search(empty condition), imidiately for equals search condition, 2s for many field with like %conditions%, 5s if i enable @Cacheable for keyword. And the performance go slower when you go to last page.I still think it's far from fast not enough for huge data.
@maheshveer71312 жыл бұрын
Hey did you get the answer??
@Akshay-ox7dc3 жыл бұрын
Could you please create a github link for this code
@SivaReddyJavaTechie3 жыл бұрын
Hi Akshay, Sure, I willl upload to GitHub and share you the link.
@sampathkumarj2ee3 жыл бұрын
@@SivaReddyJavaTechie please give me GitHub details to review the source.
@isuriprabuddhini82403 жыл бұрын
@@SivaReddyJavaTechie hello sir, this is a very valuable video for me. Thank you very much...sir, could you please share the GitHub link?