Difference between revisions of "User:Pavila"
From OpenKM Documentation
Line 9: | Line 9: | ||
</source> | </source> | ||
− | '''Find duplicates''' | + | '''Find duplicates - HSQL''' |
<source lang="sql"> | <source lang="sql"> | ||
select nd.uuid, nd.name, ndv.checksum from NodeDocument nd, NodeDocumentVersion ndv where nd.uuid = ndv.parent and ndv.checksum in | select nd.uuid, nd.name, ndv.checksum from NodeDocument nd, NodeDocumentVersion ndv where nd.uuid = ndv.parent and ndv.checksum in | ||
(select ndv.checksum from NodeDocumentVersion ndv where ndv.current = true group by ndv.checksum having count(ndv.checksum) > 1) | (select ndv.checksum from NodeDocumentVersion ndv where ndv.current = true group by ndv.checksum having count(ndv.checksum) > 1) | ||
order by nd.name; | order by nd.name; | ||
+ | </source> | ||
+ | |||
+ | '''Find duplicates - SQL''' | ||
+ | <source lang="sql"> | ||
+ | select NBS_UUID, NBS_NAME, NDV_CHECKSUM from OKM_NODE_BASE, OKM_NODE_DOCUMENT_VERSION where NBS_UUID = NDV_PARENT and NDV_CHECKSUM in | ||
+ | (select NDV_CHECKSUM from OKM_NODE_DOCUMENT_VERSION where NDV_CURRENT='T' group by NDV_CHECKSUM having count(NDV_CHECKSUM) > 1) | ||
+ | order by NBS_NAME; | ||
</source> | </source> | ||
Revision as of 13:41, 5 August 2012
OpenKM Core developer.
import java.util.*;
import java.nio.charset.*;
print("Charset: " + Charset.defaultCharset()+"<br/>");
print("Locale: " + Locale.getDefault()+"<br/>");
Find duplicates - HSQL
select nd.uuid, nd.name, ndv.checksum from NodeDocument nd, NodeDocumentVersion ndv where nd.uuid = ndv.parent and ndv.checksum in
(select ndv.checksum from NodeDocumentVersion ndv where ndv.current = true group by ndv.checksum having count(ndv.checksum) > 1)
order by nd.name;
Find duplicates - SQL
select NBS_UUID, NBS_NAME, NDV_CHECKSUM from OKM_NODE_BASE, OKM_NODE_DOCUMENT_VERSION where NBS_UUID = NDV_PARENT and NDV_CHECKSUM in
(select NDV_CHECKSUM from OKM_NODE_DOCUMENT_VERSION where NDV_CURRENT='T' group by NDV_CHECKSUM having count(NDV_CHECKSUM) > 1)
order by NBS_NAME;
TO DO
- http://doc.ubuntu.com/ubuntu/serverguide/C/libvirt.html
- http://yoadminsis.blogspot.com/2010/05/kvm-y-libvirt-bin-en-kubuntu-lucid-lynx.html
- http://www.eslomas.com/index.php/archives/2008/10/06/migrando-de-xen-a-kvm-en-ubuntu/