Read millions of records from database using Java/Jdbc

  Рет қаралды 21,656

Siva Reddy

Siva Reddy

3 жыл бұрын

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
@ampzamp
@ampzamp 2 жыл бұрын
gidday mate! nice work, youre the only guy to think of answering such a basic question! well done
@vinkm89
@vinkm89 2 жыл бұрын
Thanks it's really helpful 🙂
@sankar261
@sankar261 Жыл бұрын
Thanks. Nice explanation
@saket5925
@saket5925 2 жыл бұрын
Really helpful. I got this question for my interview 👍
@SivaReddyJavaTechie
@SivaReddyJavaTechie Жыл бұрын
Glad it was helpful!
@NIRANJANREDDYBODDIREDDY
@NIRANJANREDDYBODDIREDDY 3 жыл бұрын
Thank you so much sir.. This solution helped me a lot. Thank you ..
@SivaReddyJavaTechie
@SivaReddyJavaTechie 3 жыл бұрын
Thanks Niranjan. Please refer our KZbin channel to your friends and colleagues as it may be helpful for them. Happy learning.
@gsssvr
@gsssvr 3 жыл бұрын
Good information sir Even same process will work with Postgres and spring boot?
@rabinarayansabat9166
@rabinarayansabat9166 3 жыл бұрын
Hello Sir, how to achieve it if we are using data jpa, (without getting any outofmemoryerror error)?
@Arun-hu6ud
@Arun-hu6ud 2 ай бұрын
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
@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
@PoojaJain-uv6wf Жыл бұрын
Awesome
@SivaReddyJavaTechie
@SivaReddyJavaTechie Жыл бұрын
Thanks Pooja.
@footballuniverse6522
@footballuniverse6522 3 жыл бұрын
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?
@SivaReddyJavaTechie
@SivaReddyJavaTechie 3 жыл бұрын
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.
@johnchristopher7309
@johnchristopher7309 3 жыл бұрын
I am having 9 crore record, what's the best method to retrieve.. this code is not visible.. can you please share
@RudhinMenon
@RudhinMenon 2 жыл бұрын
thanks, but this does not work for db2 for some reason, strange
@karthikeyanr6368
@karthikeyanr6368 3 жыл бұрын
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.
@PrinceOf34
@PrinceOf34 3 жыл бұрын
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.
@maheshveer7131
@maheshveer7131 2 жыл бұрын
Hey did you get the answer??
@Akshay-ox7dc
@Akshay-ox7dc 3 жыл бұрын
Could you please create a github link for this code
@SivaReddyJavaTechie
@SivaReddyJavaTechie 3 жыл бұрын
Hi Akshay, Sure, I willl upload to GitHub and share you the link.
@sampathkumarj2ee
@sampathkumarj2ee 3 жыл бұрын
@@SivaReddyJavaTechie please give me GitHub details to review the source.
@isuriprabuddhini8240
@isuriprabuddhini8240 3 жыл бұрын
@@SivaReddyJavaTechie hello sir, this is a very valuable video for me. Thank you very much...sir, could you please share the GitHub link?
@gamingaayatamir3201
@gamingaayatamir3201 3 жыл бұрын
Voice is too slow
L2 Support Roles and Responsibilities
11:10
Siva Reddy
Рет қаралды 60 М.
Spring Boot JDBC using JdbcTemplate
29:39
Telusko
Рет қаралды 68 М.
Slow motion boy #shorts by Tsuriki Show
00:14
Tsuriki Show
Рет қаралды 10 МЛН
Опасность фирменной зарядки Apple
00:57
SuperCrastan
Рет қаралды 12 МЛН
Database Indexing for Dumb Developers
15:59
Laith Academy
Рет қаралды 49 М.
Java 8 Streams programs you must prepare for Java Interviews
23:02
I've been using Redis wrong this whole time...
20:53
Dreams of Code
Рет қаралды 348 М.
Building Pipelines with Dynamic Tables
21:23
Snowflake Developers
Рет қаралды 13 М.
Troubleshoot production issue
10:34
Siva Reddy
Рет қаралды 86 М.
Java Database Connectivity | JDBC
20:34
Telusko
Рет қаралды 248 М.
How to Validate Millions of Record in ETL testing?
11:14
Tester Hoon
Рет қаралды 19 М.