Good day All,
Please i am trying to find out the volume of documents on Alfresco at any given time besides generating other reports, can someone give me a step by step approach as to how and where i can run this sql queries on Alfresco Db?
Look forward to your kind response.
Solved! Go to Solution.
Step 1: Start a DB client program (e.g. pgadmin or just psql)
Step 2: Connect to the database
Step 3: Open up a SQL query editor
Step 4: Query
Alternatively: simply right click on your contentstore folder, select "Properties" and let windows count the files + sizes for you
You can try to query all content's size by using following sql
SELECT sum(u.content_size)
FROM alf_node AS n,
alf_node_properties AS p,
alf_node_properties AS p1,
alf_namespace AS ns,
alf_qname AS q,
alf_content_data AS d,
alf_content_url AS u
WHERE n.id=p.node_id
AND ns.id=q.ns_id
AND p.qname_id=q.id
AND p.long_value=d.id
AND d.content_url_id=u.id
AND p1.node_id=n.id
AND p1.qname_id IN (SELECT id FROM alf_qname WHERE local_name='content')
Hi Kanye,
Please where do i run this query?
Do i go to C:\Alfresco\postgresql\bin to run the query?
I need a step by step approach on where i can run this query on the Db.
Thanks.
Step 1: Start a DB client program (e.g. pgadmin or just psql)
Step 2: Connect to the database
Step 3: Open up a SQL query editor
Step 4: Query
Alternatively: simply right click on your contentstore folder, select "Properties" and let windows count the files + sizes for you
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.