Mercurial > dive4elements > framework
comparison artifact-database/src/main/resources/sql/org-h2-driver.properties @ 231:1ea35226a6de
Database cleaner: Ignoring locked artifacts is now done on database level.
artifacts/trunk@1635 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Thu, 31 Mar 2011 15:56:50 +0000 |
parents | 328ef982d768 |
children | 202b6ae2fcad |
comparison
equal
deleted
inserted
replaced
230:fbd57d2eeaef | 231:1ea35226a6de |
---|---|
10 artifacts.touch=UPDATE artifacts SET last_access = CURRENT_TIMESTAMP WHERE id = ? | 10 artifacts.touch=UPDATE artifacts SET last_access = CURRENT_TIMESTAMP WHERE id = ? |
11 | 11 |
12 artifacts.outdated=SELECT id, factory, data FROM artifacts WHERE ttl IS NOT NULL \ | 12 artifacts.outdated=SELECT id, factory, data FROM artifacts WHERE ttl IS NOT NULL \ |
13 AND DATEDIFF('MILLISECOND', last_access, CURRENT_TIMESTAMP) > ttl \ | 13 AND DATEDIFF('MILLISECOND', last_access, CURRENT_TIMESTAMP) > ttl \ |
14 AND id NOT IN (SELECT DISTINCT artifact_id FROM collection_items) \ | 14 AND id NOT IN (SELECT DISTINCT artifact_id FROM collection_items) \ |
15 AND id NOT IN ($LOCKED_IDS$) \ | |
15 LIMIT 50 | 16 LIMIT 50 |
16 | 17 |
17 artifacts.select.gid=SELECT id, last_access, ttl, factory, data FROM artifacts WHERE gid = ? | 18 artifacts.select.gid=SELECT id, last_access, ttl, factory, data FROM artifacts WHERE gid = ? |
18 | 19 |
19 artifacts.get.id=SELECT id FROM artifacts WHERE gid = ? | 20 artifacts.get.id=SELECT id FROM artifacts WHERE gid = ? |