Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
badges earned

Your Points Tracker
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Help requested to construct an SQL query (page hierarchy) for Confluence.

I have read only access to our confluence database, and I'm trying to understand the schema.

a) Is there some good documentation on the schema out there / worked examples etc?

b) I have 1 specific query I need to write, which is to be able to pull a "page tree" out for a defined spacekey.

i.e a hierarchical list of the page titles. their "indent level", and permalinks, associated labels and any other page properties I can find.


A starter would be much appreciated.


1 answer

0 votes
Taranjeet Singh Community Leader Apr 26, 2019

@Graham Foster See if this documentation about Confluence database model helps you:


I also have link to this Confluence database schema pdf , for Confluence v6.x, which may be useful:

Thanks for the starter on this.

I don't suppose you can explain why all the weirdly named table prefixes can you (e..g AO_26DB7F) Are they in some way linked to tables used by plugin's perhaps? Is there a way of figuring out which plugin uses which tables? (like I'm interested in Scroll Versions as a plugin, as I suspect that the "permalinks" for their page identifiers must be held somewhere (but I can't find them!)


Taranjeet Singh Community Leader Apr 26, 2019

Yes, the tables starting with prefixes like "AO..." belong to the plugins. I am not sure though which plugins they belong to ; you can search for each table name online, and you will come to know.

If you are looking for where page metadata like page IDs and their versions are stored, they are stored in "content" table.

Suggest an answer

Log in or Sign up to answer
Community showcase

The benefits of using Jira in different departments

Jira is a great tool to use across different departments. Forget that paperwork – switch to Jira and get that tasks done smoothly. Marketing Jira allows for a complete digital transformation of you...

40 views 0 2
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you