>>553109
My images are kept as separate files in original form. Only the links are kept in the database. Here's the record definition for MySQL:
CREATE TABLE chan_posts (
post_key varchar(31) NOT NULL COMMENT 'site/board#post (post is set to length 9 with . fill.',
thread_key varchar(31) NOT NULL COMMENT 'site/board#thread (thread is set to length 9 with . fill.',
post_site varchar(19) NOT NULL COMMENT 'For editor post, use editor. For spreadsheet, use sheet.',
post_board varchar(15) NOT NULL COMMENT 'For editor post, use editor. For spreadsheet, use sheet.',
post_thread_id int(10) UNSIGNED NOT NULL COMMENT 'For editor post, use 1. For spreadsheet, use row.',
post_id int(10) UNSIGNED NOT NULL COMMENT 'For editor post, use next available. For spreadsheet, use column converted to number.',
ghost int(10) UNSIGNED DEFAULT NULL,
post_url text,
local_thread_file text,
post_time datetime NOT NULL DEFAULT CURRENT_TIMESTAMP,
post_title text CHARACTER SET utf8 COLLATE utf8_unicode_ci,
post_thread_title text CHARACTER SET utf8 COLLATE utf8_unicode_ci,
post_text text CHARACTER SET utf8 COLLATE utf8_unicode_ci,
prev_post_key varchar(31) DEFAULT NULL,
next_post_key varchar(31) DEFAULT NULL,
wp_post_id int(11) UNSIGNED DEFAULT NULL,
post_type set('editor','q-post','anon','approved','high','mid','low','irrelevant','timeline') NOT NULL DEFAULT 'anon',
flag_use_in_blog tinyint(1) NOT NULL DEFAULT '0',
flag_included_on_maps tinyint(1) NOT NULL DEFAULT '0',
flag_included_in_bread tinyint(1) DEFAULT NULL,
flag_bread_post tinyint(1) DEFAULT NULL,
flag_relevant_img tinyint(1) DEFAULT NULL,
flag_relevant_post tinyint(1) DEFAULT NULL,
author_name text,
author_trip text,
author_hash text,
author_type smallint(6) DEFAULT NULL,
img_files json DEFAULT NULL,
link_list json DEFAULT NULL,
video_list json DEFAULT NULL,
editor_notes text,
tags text,
people text,
places text,
organizations text,
signatures text,
event_date datetime DEFAULT NULL,
report_date datetime DEFAULT NULL,
timeline_title tinytext
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
ALTER TABLE chan_posts
ADD PRIMARY KEY (post_key),
ADD KEY post_id (post_id),
ADD KEY thread_key (thread_key),
ADD KEY site_board (post_site,post_board);
I'm considering making the database publicly available. I need to figure out how much space it will take up and whether it will fit within my current hosting plan. At present, I have over 880,000 posts in the database. The size of the database file for just this table without the images is 1.1GB. There's another GB for images of Q posts, but this is only the fraction that is Q posts, bread posts, and for the context posts related to these.