fast way to load mongodb data into python list
import pymongo
import numpy as np
""" Connection ...."""
movie_raw = db["collection"].find({})
""" Loading """
count = movie_raw=count()
data_arr = np.empty(count, dtype=...)
for index, movie in enumnerate(movie_raw):
data_arr[i] = movie
""" Saves alot of time instead of # list(movie_raw) # when loading large DBs """