CREATE INDEX "idx_video_is_published_produced" on "video" using btree ( "is_published" "bool_ops", "is_produced" "bool_ops" );
+
+--
+-- TOC Entry ID 37 (OID 520246)
+--
+-- Name: "idx_content_is_published" Type: INDEX Owner: postgres
+--
+
+CREATE INDEX "idx_content_is_published" on "content" using btree ( "is_published" "bool_ops" );
+
+--
+-- TOC Entry ID 47 (OID 465036)
+--
+-- Name: "idx_comment_tomedia_ispublished" Type: INDEX Owner: postgres
+--
+
+CREATE INDEX "idx_comment_tomedia_ispublished" on "comment" using btree ( "to_media" "int4_ops", "is_published" "bool_ops" );
+
+
// init
static {
-
+ /** @todo either in the above block or here :) //rk */
templateDir = MirConfig.getPropWithHome("HTMLTemplateProcessor.Dir");
templateCache = new FileTemplateCache(templateDir);
templateCache.setLoadingPolicy(templateCache.LOAD_ON_DEMAND);
// nadir evironment. from my point of coding, this needs an urgent
// fixxx.
// yeah, from my point too - tob.
- //actionRoot = docRoot + "/servlet/" + MirConfig.getProp("ServletName");
+ //actionRoot = docRoot + "/servlet/" + MirConfig.getProp("ServletName");
//actionRoot = docRoot + "/servlet/NadirAktuell";
actionRoot = docRoot + "/servlet/Mir";
abstract public class Producer {
- protected static String producerDocRoot = MirConfig.getProp("Producer.DocRoot");
- protected static String producerStorageRoot = MirConfig.getProp("Producer.StorageRoot");
- protected static String producerProductionHost = MirConfig.getProp("Producer.ProductionHost");
- protected static String producerOpenAction = MirConfig.getProp("Producer.OpenAction");;
+ protected static String producerDocRoot = MirConfig.getProp("Producer.DocRoot");
+ protected static String producerStorageRoot = MirConfig.getProp("Producer.StorageRoot");
+ protected static String producerProductionHost = MirConfig.getProp("Producer.ProductionHost");
+ protected static String producerOpenAction = MirConfig.getProp("Producer.OpenAction");;
+ protected static String actionRoot = null;
+
protected static Logfile theLog = Logfile.getInstance(MirConfig.getProp("Home") + "/" + MirConfig.getProp("Producer.Logfile"));
protected static ModuleTopics topicsModule;
protected static ModuleLinksImcs linksImcsModule;
featureModule = new ModuleFeature(DatabaseFeature.getInstance());
imageModule = new ModuleImages(DatabaseImages.getInstance());
uploadedMediaModule = new ModuleUploadedMedia(DatabaseImages.getInstance());
+ /** @todo same as in HTMLTemplateProcessor, this should be dynamically set */
+ actionRoot = producerDocRoot + "/servlet/Mir";
}
catch(StorageObjectException e)
{
}//for
}
// timing and message to browser
- logHTML(htmlout, "Producer.Content finished producing " +
- (System.currentTimeMillis() - startTime) + " ms. ("+ pageCount+" Pages)");
+ long overall = System.currentTimeMillis() - startTime;
+ long ppm = pageCount / (overall/60000);
+ logHTML(htmlout, "Producer.Content finished producing: " +
+ overall + " ms for "+ pageCount+" Pages = " +ppm + " pages/min");
+ logHTML(htmlout, "Back to <a href=\""+actionRoot+"\">Admin-Startage</a>");
- /** @todo here we should have a link back to admin logged */
/** @todo why no syncing here? */
}