Add todos

This commit is contained in:
vrde 2016-10-28 11:41:38 +02:00
parent c674029863
commit 14bf1fff5e
No known key found for this signature in database
GPG Key ID: 6581C7C39B3D397D

View File

@ -194,6 +194,7 @@ class RethinkDBBackend:
The transaction that used the `txid` as an input else `None` The transaction that used the `txid` as an input else `None`
""" """
# TODO: use index!
return self.connection.run( return self.connection.run(
r.table('bigchain', read_mode=self.read_mode) r.table('bigchain', read_mode=self.read_mode)
.concat_map(lambda doc: doc['block']['transactions']) .concat_map(lambda doc: doc['block']['transactions'])
@ -210,6 +211,7 @@ class RethinkDBBackend:
A cursor for the matching transactions. A cursor for the matching transactions.
""" """
# TODO: use index!
return self.connection.run( return self.connection.run(
r.table('bigchain', read_mode=self.read_mode) r.table('bigchain', read_mode=self.read_mode)
.concat_map(lambda doc: doc['block']['transactions']) .concat_map(lambda doc: doc['block']['transactions'])