Difference between revisions of "Database Table: logtagsrecent"

From Dreamwidth Notes
Jump to: navigation, search
(Created page with 'logtagsrecent =Definition= <source lang="sql"> CREATE TABLE logtagsrecent ( journalid INT UNSIGNED NOT NULL, jitemid MEDIUMINT UNSIGNED NOT...')
 
m (Robot: Updating: Format)
 
(8 intermediate revisions by 4 users not shown)
Line 1: Line 1:
[[Category: Database Table|logtagsrecent]]
+
{{Database Table|name=logtagsrecent|table type=clustered|repo=dw-free}}
=Definition=
+
[[Description::This table stores data for mapping tags.]] It's like [[Database Table: logtags|logtags]], except it's only for the most recent 100 tags-to-entry.
 +
= Definition =
 
<source lang="sql">
 
<source lang="sql">
 
CREATE TABLE logtagsrecent (
 
CREATE TABLE logtagsrecent (
Line 6: Line 7:
 
     jitemid  MEDIUMINT UNSIGNED NOT NULL,
 
     jitemid  MEDIUMINT UNSIGNED NOT NULL,
 
     kwid      INT UNSIGNED NOT NULL,
 
     kwid      INT UNSIGNED NOT NULL,
 +
 
     PRIMARY KEY (journalid, kwid, jitemid)
 
     PRIMARY KEY (journalid, kwid, jitemid)
 
)
 
)
 
</source>
 
</source>
 
+
{{Database Table Footer}}
=Relationships=
+
 
+
=Location=
+
[[Clustered database]]
+

Latest revision as of 20:18, 11 May 2011

This is a clustered table. This table stores data for mapping tags. It's like logtags, except it's only for the most recent 100 tags-to-entry.

Definition

CREATE TABLE logtagsrecent (
    journalid INT UNSIGNED NOT NULL,
    jitemid   MEDIUMINT UNSIGNED NOT NULL,
    kwid      INT UNSIGNED NOT NULL,
 
    PRIMARY KEY (journalid, kwid, jitemid)
)

Relationships

Outgoing

  • Foreign key: jitemid to log2.jitemid
  • Foreign key: journalid to user.userid