Would like to figure out how to better retrieve data from database without performance cost.
Plan as follows:
Select id from article table
;- store ids in
List<int> arr;
- find out last article id.
int x = arr.Count()
Select * from article_tbl where id = x
; Run query.- Post it on you page.
Am I planning right? What is better way of retrieving data from database?
Thanks a lot