2016-12-14 27 views
1

在露天持久性层A文件节点表示:如何列出关于所有Alfresco文件(Postgres SQL)的信息?

  • 内容存储在ALFRESCO_HOME\alf_data\contentstore\
  • 元数据存储在relational database(默认值:PostgreSQL的)
  • 信息文本搜索( Lucene)存储在Solr的文档数据库中

哪些Postgres表格用于保留新上传文件的元数据? 如何列出关于所有Alfresco文件(Postgres SQL)的信息?

+2

数据库架构,就是要内部 - 你不应该直接击中它。 –

+0

我知道,但我需要导出一千万个Alfresco文件(名称,路径,大小)的列表以确保所有文件都已导入。 – wildloop

回答

2

是保持文件的元数据中的表:

enter image description here

清单所有露天的文件的信息 - Postgres的SQL:

SELECT 
    n.id, 
    npn.string_value as filename, 
    cu.content_size, 
    cu.content_url, 
    n.uuid, 
    n.audit_created 
FROM alf_node as n 
    join alf_node_properties npn on 
    (npn.node_id=n.id and npn.actual_type_n=6 and npn.qname_id in 
     (select id from alf_qname where local_name='name')) 
    join alf_node_properties npc on 
    (npc.node_id=n.id and npc.actual_type_n=21 and npc.qname_id in 
     (select id from alf_qname where local_name='content')) 
    join alf_content_data cd on (cd.id = npc.long_value) 
    join alf_content_url cu on (cd.content_url_id = cu.id) 
where 
    n.type_qname_id in (
    select id from alf_qname where local_name='content' 
) 
相关问题