Click here to Skip to main content
15,899,314 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
which approach is best to retrieve 2 billions records at once with out any search criteria?
Connection less approach/ connection oriented.

for example

select * from orders

What I have tried:

which approach is best to retrieve 2 billions records at once with out any search criteria?
Connection less approach/ connection oriented.

for example

select * from orders
Posted
Updated 18-Sep-16 10:07am
Comments
Patrice T 18-Sep-16 13:12pm    
You should tell what you want to do with it.
awaisshabir 18-Sep-16 16:01pm    
this is my interview Question that's why i am asking.
Wendelius 18-Sep-16 13:13pm    
Why fetch all of them?
awaisshabir 18-Sep-16 16:01pm    
this is my interview Question that's why i am asking.
[no name] 18-Sep-16 13:14pm    
You should use the "don't do this at all" approach.

Do not fetch 1 bilion records at once!

Please, read this: retrieve millions record from SQL server in seconds[^]
 
Share this answer
 
You said that this is an interview question. If the scenario is to show the records, then the question doesn't make sense. Who would go through all the records or even want to see them in a list...

Even though it would be possible to fetch the records for processing it isn't feasible to fetch them for viewing. So as far as I can see, there is no reasonable approach.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900