<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:clearspace="http://www.jivesoftware.com/xmlns/clearspace/rss" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Jivespace: Message List - Questions about DB schema for Clearspace version 2.5</title>
    <link>http://www.jivesoftware.com/jivespace/community/developer?view=discussions</link>
    <description>Most recent forum messages</description>
    <language>en</language>
    <pubDate>Fri, 07 Nov 2008 14:52:02 GMT</pubDate>
    <generator>Jive SBS 3.0.8 (http://jivesoftware.com/products/clearspace/)</generator>
    <dc:date>2008-11-07T14:52:02Z</dc:date>
    <dc:language>en</dc:language>
    <item>
      <title>Re: Questions about DB schema for Clearspace version 2.5</title>
      <link>http://www.jivesoftware.com/jivespace/message/139715?tstart=0#139715</link>
      <description>&lt;!-- [DocumentBodyStart:9633124c-a951-4118-ac47-5605a6c10511] --&gt;&lt;div class='jive-rendered-content'&gt;&lt;p&gt;Hi Rick,&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Indeed it is, nice to hear from you. Also nice to see that you take the time to help out in the forums &lt;img height="16px" src="http://www.jivesoftware.com/community/images/emoticons/happy.gif" width="16px"/&gt;.&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;What I'd like to achieve is add new tags to some documents. By some I mean a ton of documents, so doing it manually is out of the question. I'm hoping to be able to run some SQL to do this for me. I've done some research and I believe all I need to do is:&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;1. Stop Clearspace&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;2. For each document (with ID internalDocID):&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;(a). Pick a unique ID for each tag, let's call it X. This tagID must not currently exist in jiveTag. Insert a record into jiveTag for the new tag.&lt;/p&gt;&lt;p&gt;(b). Insert a record into jiveObjectTag. Record will have the following format:&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;102 (which is the code for a doc), internalDocID, X, creationDate.&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;3. Start Clearspace&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I don't think I need to touch tables jiveTagSet and JiveTagSetMap because I understand them to be a grouping mechanism for tags which I don't need?&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Do I need to do some kind of re-indexing because I have manually inserted records into the tables? Maybe I don't need to worry about re-indexing and I'll be good to go as soon as I restart Clearspace. Does my above plan seem sensible?&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks,&lt;/p&gt;&lt;p&gt;Ramsey&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:9633124c-a951-4118-ac47-5605a6c10511] --&gt;</description>
      <pubDate>Fri, 07 Nov 2008 14:52:02 GMT</pubDate>
      <author>communities@jivesoftware.com</author>
      <guid>http://www.jivesoftware.com/jivespace/message/139715?tstart=0#139715</guid>
      <dc:date>2008-11-07T14:52:02Z</dc:date>
      <clearspace:dateToText>1 year, 1 week ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: Questions about DB schema for Clearspace version 2.5</title>
      <link>http://www.jivesoftware.com/jivespace/message/139222?tstart=0#139222</link>
      <description>&lt;!-- [DocumentBodyStart:b9b59dd0-7d61-4530-a0a1-cac0c38a0c43] --&gt;&lt;div class='jive-rendered-content'&gt;&lt;p&gt;Hi Ramsey (same Ramsey that I met over in London by any chance?)&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Not sure if you've seen this, but there's a &lt;a class="jive-link-external-small" href="http://www.jivesoftware.com/builds/docs/clearspace/latest/DatabaseSchemaGuide.html"&gt;Database Schema&lt;/a&gt; guide that lists all of the tables, and down at the bottom of the doc there are ERD diagrams that I've found helpful in visualizing the relationships.&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:b9b59dd0-7d61-4530-a0a1-cac0c38a0c43] --&gt;</description>
      <pubDate>Thu, 06 Nov 2008 00:07:10 GMT</pubDate>
      <author>rick@jivesoftware.com</author>
      <guid>http://www.jivesoftware.com/jivespace/message/139222?tstart=0#139222</guid>
      <dc:date>2008-11-06T00:07:10Z</dc:date>
      <clearspace:dateToText>1 year, 2 weeks ago</clearspace:dateToText>
      <clearspace:replyCount>1</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Re: Questions about DB schema for Clearspace version 2.5</title>
      <link>http://www.jivesoftware.com/jivespace/message/137958?tstart=0#137958</link>
      <description>&lt;!-- [DocumentBodyStart:9913a728-9beb-4725-9ded-325417d23edd] --&gt;&lt;div class='jive-rendered-content'&gt;&lt;p&gt;Hi,&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;The key here is the jiveObjectTag table, this is the table that maps any object in the system to a given tag.&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;objectType and objectID will map to a specific document, blog, community, etc. in the system. Then the tagID maps to a tag in the jiveTags table. Thanks.&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;-Todd&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:9913a728-9beb-4725-9ded-325417d23edd] --&gt;</description>
      <pubDate>Mon, 03 Nov 2008 13:59:07 GMT</pubDate>
      <author>communities@jivesoftware.com</author>
      <guid>http://www.jivesoftware.com/jivespace/message/137958?tstart=0#137958</guid>
      <dc:date>2008-11-03T13:59:07Z</dc:date>
      <clearspace:dateToText>1 year, 2 weeks ago</clearspace:dateToText>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
    <item>
      <title>Questions about DB schema for Clearspace version 2.5</title>
      <link>http://www.jivesoftware.com/jivespace/message/137950?tstart=0#137950</link>
      <description>&lt;!-- [DocumentBodyStart:68115942-e27e-4881-b08e-6f6d9e725f6e] --&gt;&lt;div class='jive-rendered-content'&gt;&lt;p&gt;Hi,&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;I'm using Clearspace version 2.5.2 and am trying to work out how tags are related to individual documents / other content in the DB schema. I've worked out how a tag maps to a community / space:&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;jiveTag (tagID) --&amp;gt; jiveTagSetMap (tagSetID) --&amp;gt; jiveTagSet (containerID) --&amp;gt; jiveCommunity&lt;/p&gt;&lt;p style="min-height: 8pt; height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;The above tells me that tags at their lowest level can be mapped to a communinty / space, and therefore by implication to every document within a space, but not to one specific document only. Can anyone explain how you map a record from the table jiveTag to an individual document in table jiveDocument?&lt;/p&gt;&lt;/div&gt;&lt;!-- [DocumentBodyEnd:68115942-e27e-4881-b08e-6f6d9e725f6e] --&gt;</description>
      <pubDate>Mon, 03 Nov 2008 11:47:46 GMT</pubDate>
      <author>communities@jivesoftware.com</author>
      <guid>http://www.jivesoftware.com/jivespace/message/137950?tstart=0#137950</guid>
      <dc:date>2008-11-03T11:47:46Z</dc:date>
      <clearspace:dateToText>1 year, 2 weeks ago</clearspace:dateToText>
      <clearspace:replyCount>3</clearspace:replyCount>
      <clearspace:objectType>0</clearspace:objectType>
    </item>
  </channel>
</rss>

