File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
bindings/python/benchmarks Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -104,7 +104,7 @@ def exercise_table(table):
104
104
105
105
def time_conventional_ndarray (self ):
106
106
collection = db .benchmark
107
- cursor = collection .find ()
107
+ cursor = collection .find (projection = { "_id" : 0 } )
108
108
dtype = self .dtypes
109
109
if "Large" in type (self ).__name__ :
110
110
np .array ([tuple (doc [k ] for k in self .large_doc_keys ) for doc in cursor ], dtype = dtype )
@@ -113,7 +113,7 @@ def time_conventional_ndarray(self):
113
113
114
114
def time_to_numpy (self ):
115
115
c = db .benchmark
116
- find_numpy_all (c , {}, schema = self .schema )
116
+ find_numpy_all (c , {}, schema = self .schema , projection = { "_id" : 0 } )
117
117
118
118
def time_conventional_pandas (self ):
119
119
collection = db .benchmark
@@ -126,7 +126,7 @@ def time_to_pandas(self):
126
126
127
127
def time_to_arrow (self ):
128
128
c = db .benchmark
129
- table = find_arrow_all (c , {}, schema = self .schema )
129
+ table = find_arrow_all (c , {}, schema = self .schema , projection = { "_id" : 0 } )
130
130
self .exercise_table (table )
131
131
132
132
def time_conventional_arrow (self ):
You can’t perform that action at this time.
0 commit comments