Netsend / mastersync

multi-master replication
GNU Affero General Public License v3.0
0 stars 1 forks source link

refactor and simplify virtual collection, cursor and stream #28

Closed timkuijsten closed 9 years ago

timkuijsten commented 9 years ago

Simplify virtual_collection, virtual_cursor and virtual_stream by simply concatenating two mongo collections.

Let array_collection, array_cursor and array_stream abstract a mongo collection into an array.

Current code is complex, hard to debug and a potential source of bugs (might be the problem with #27).