Changes between Version 8 and Version 9 of DatabaseCleanup


Ignore:
Timestamp:
Aug 4, 2016, 1:20:39 PM (8 years ago)
Author:
casties
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DatabaseCleanup

    v8 v9  
    9999group by node_type
    100100}}}
     101
     102The number of REFERENCEs without attributes but with relations grouped by date.
     103{{{
     104select count(*), from_unixtime(modification_time/1000, '%Y-%m-%d')
     105from node e
     106where
     107e.object_class = 'REFERENCE'
     108and system_status = 'CURRENT_VERSION'
     109and e.id not in (
     110select source_id from node
     111where node_type = 'ATTRIBUTE'
     112)
     113and e.id in (
     114select source_id from node
     115where node_type = 'RELATION'
     116)
     117group by from_unixtime(modification_time/1000, '%Y-%m-%d')
     118order by 2
     119}}}