Merge branch '20318-disk-cache'
[arvados.git] / services / api / script / populate-file-info-columns-in-collections.rb
index b0bc5a21a095ed496189c33aa4b270aa54f3e4ed..f7cb024b266a048d5cc1b60db2234242001eab95 100755 (executable)
@@ -70,7 +70,7 @@ require "group_pdhs"
 def main
 
   distinct_pdh_count = ActiveRecord::Base.connection.exec_query(
-    "SELECT DISTINCT portable_data_hash FROM collections"
+    "SELECT DISTINCT portable_data_hash FROM collections where file_count=0"
   ).rows.count
 
   # Generator that queries for all the distinct pdhs greater than last_pdh