In-Portal Issue Tracker

Welcome to the In-Portal Open Source CMS Issue Tracker! This is a central management / tracking tool for all types of tasks / issues / bugs for the In-Portal Project. Before reporting any issues, please make sure to read the Guide into Issue Tracker and How to Properly Test and Report Bugs!

Viewing Issue Simple Details Jump to Notes ] Wiki ] View Advanced ] Issue History ] Print ]
ID Category Type Reproducibility Date Submitted Last Update
0001320 [In-Portal CMS] Optimization task always 2012-06-12 04:30 2012-07-25 05:29
Reporter Dmitry View Status public Project Name In-Portal CMS
Assigned To alex Developer
Priority normal Resolution fixed Fixed in Version 5.2.0-RC1
Status closed Product Version 5.1.3 Target Version 5.2.0
Time EstimateNo estimate
Summary 0001320: Improving page detection sql
Description Currently we have the following SQL (actual ids are not important here) to select/find ID of currently loaded Category.

SELECT CategoryId
FROM Categories
WHERE ( (NamedParentPath = 'index') OR (NamedParentPath = 'Content/index') OR (`Type` = 2 AND CachedTemplate = 'index') ) AND (ThemeId = 8 OR ThemeId = 0)

This can become a problem when you have high number of Categories/Sections (ie. 3K+, but not a problem for small websites) since NamedParentPath is a TEXT field and can't be properly cached.

It would be quite an improvement if we start using Hash (int) column which can be Indexed quite well.

Additionally we might want to INDEX Type field too!
Additional Information
Tags No tags attached.
Reference https://groups.google.com/d/topic/in-portal-dev/1suPNynpm9E/discussion
Change Log Message Improving page load sql
Estimate Points 1
Attached Files png file icon In-Portal_--_SQL.png [^] (36,022 bytes) 2012-06-12 04:30


patch file icon reversed_template_detection_improvement.patch [^] (15,043 bytes) 2012-06-12 11:20 [Show Content]

- Relationships Relation Graph ] Dependency Graph ]
parent of 0001321closed (5.2.0)alex Category Template Hash fields are not Populated during Upgrade 

-  Notes
User avatar (0004719)
alex (manager)
2012-06-12 11:22

Will test all together later.
User avatar (0004720)
alex (manager)
2012-06-12 11:25

Fix committed to 5.2.x branch. Commit Message:

Fixes 0001320: Improving page detection sql
User avatar (0004865)
alex (manager)
2012-07-25 05:29

Since 5.2.0 version was released.

- Related Changesets
In-Portal CMS: 5.2.x r15390
Timestamp: 2012-06-12 11:25:51
Author: alex
Details ] Diff ]
Fixes 0001320: Improving page detection sql
mod - /in-portal/branches/5.2.x/core/install/install_schema.sql Diff ] File ]
mod - /in-portal/branches/5.2.x/core/install/upgrades.sql Diff ] File ]
mod - /in-portal/branches/5.2.x/core/units/categories/cache_updater.php Diff ] File ]
mod - /in-portal/branches/5.2.x/core/units/categories/categories_config.php Diff ] File ]
mod - /in-portal/branches/5.2.x/core/units/categories/categories_event_handler.php Diff ] File ]
mod - /in-portal/branches/5.2.x/core/units/categories/categories_item.php Diff ] File ]
mod - /in-portal/branches/5.2.x/core/units/categories/categories_tag_processor.php Diff ] File ]
mod - /in-portal/branches/5.2.x/core/units/helpers/themes_helper.php Diff ] File ]
mod - /in-portal/branches/5.2.x/core/units/structure/structure_config.php Diff ] File ]

- Issue History
Date Modified Username Field Change
2012-07-25 05:29 alex Note Added: 0004865
2012-07-25 05:29 alex Status resolved => closed
2012-06-12 15:54 Dmitry Relationship added parent of 0001321
2012-06-12 11:25 alex Note Added: 0004720
2012-06-12 11:25 alex Status reviewed and tested => resolved
2012-06-12 11:25 alex Fixed in Version => 5.2.0-RC1
2012-06-12 11:25 alex Resolution open => fixed
2012-06-12 11:25 alex Assigned To !COMMUNITY => alex
2012-06-12 11:25 alex Changeset attached 5.2.x r15390
2012-06-12 11:22 alex Note Added: 0004719
2012-06-12 11:22 alex Status needs testing => reviewed and tested
2012-06-12 11:21 alex Assigned To => !COMMUNITY
2012-06-12 11:21 alex Developer => alex
2012-06-12 11:21 alex Status active => needs testing
2012-06-12 11:20 alex File Added: reversed_template_detection_improvement.patch
2012-06-12 04:30 alex Reporter alex => Dmitry
2012-06-12 04:30 alex New Issue
2012-06-12 04:30 alex File Added: In-Portal_--_SQL.png
2012-06-12 04:30 alex Reference => https://groups.google.com/d/topic/in-portal-dev/1suPNynpm9E/discussion
2012-06-12 04:30 alex Change Log Message => Improving page load sql
2012-06-12 04:30 alex Estimate Points => 1



Web Development by Intechnic
In-Portal Open Source CMS
In-Portal Open Source CMS
Copyright © 2000 - 2009 MantisBT Group

Powered by Mantis Bugtracker