X-Git-Url: https://code.grnet.gr/git/pithos/blobdiff_plain/7e66ca7c5483dd1060e9ed8d7096d6cb4a2d6440..5c0ccd818c152cd426780e4bc55798f1d10dde04:/pithos/backends/lib_alchemy/node.py diff --git a/pithos/backends/lib_alchemy/node.py b/pithos/backends/lib_alchemy/node.py index 7bd5210..716f94c 100644 --- a/pithos/backends/lib_alchemy/node.py +++ b/pithos/backends/lib_alchemy/node.py @@ -149,10 +149,8 @@ class Node(DBWorker): columns.append(Column('muser', String(255), nullable=False, default='')) columns.append(Column('cluster', Integer, nullable=False, default=0)) self.versions = Table('versions', metadata, *columns) - # place an index on node - Index('idx_versions_node', self.versions.c.node) - # TODO: Sort out if more indexes are needed. - #Index('idx_versions_node', self.versions.c.mtime) + Index('idx_versions_node_mtime', self.versions.c.node, + self.versions.c.mtime) #create attributes table columns = []