I have to get all the field (column) values in an array from a SharePoint list. Right now I am looping through all the items in the list and creating an array. But it is very inefficient if I have large number of items.
What would be the most efficient way to get all the field (column) values in an array from SharePoint List?
Update 1: The array values are further used in the code and are not displayed to end user.