A lightweight blog program can store data within a few tables, how does Typecho control its size?

📅 2026-11-01 👁️ 0

Typecho is a lightweight blogging program that can compress storage to a few data tables, relying on two things: data model convergence, retaining only core objects such as articles, categories, tags, users, and comments; and functional selection, entrusting capabilities such as e-commerce, multi-site, and complex permissions to plugins rather than built-in table structures. The official description states that a complete plugin and template mechanism is achieved with only 7 data tables and less than 400KB of code, thereby bringing extremely low CPU and memory usage.

The two volume numbers in the official口径

The number of data tables and the size of the code are two different types of 'lightness'. Few tables mean a simple data structure: fields are countable, relationships are clear, backup files are small, and exporting and importing during migration are not likely to cause problems, and debugging can be done by directly opening the table. A small code size means a light running burden: fewer files are loaded, fewer objects are resident in memory, and it can still run with usable performance on low-end hosts.

These two points are regarded as selling points by the official because they indeed constitute a decision-making basis for the target users (individual authors, small sites): these users usually only have one inexpensive host and do not want to maintain a complex operation and maintenance system for a blog.

What does having fewer tables bring and what does it mean

The number of data tables is related to the freedom of secondary development and it is bidirectional. When there are fewer tables, the model is easy to understand, and people who modify themes or write plugins can quickly know where a field is located in a table, and the cost of expansion is controllable. On the contrary, when business objects exceed the preset scope, there are no corresponding tables to carry them: when you need structures such as products, orders, multi-site ownership, and group permissions, either you have to expand fields to do hard work, or you have to introduce new tables and handle consistency yourself.

So the question of whether the lightweight program is sufficient is essentially asking whether the business object of the site falls within its preset model. Blogs, documents, and information sites usually fall inside; corporate websites with inquiry and membership, and malls with orders and distribution, usually fall outside.

Another route: change the implementation language

The table structure and code volume are doing subtraction within the same language, with limited effect. Another approach is to change the runtime stack: AnQiCMS is developed based on GoLang, with a technology stack of GoLang plus Iris framework and GORM, and does not depend on the PHP interpreter.The official figures state that the memory usage is reduced by about 80% compared to PHP class CMS, and the page loading speed is significantly improved compared to traditional PHP CMS, with the ability to handle about 5 million PV on a single machine.These numbers retain the

On the functional side, this route does not rely on reducing the model to achieve lightness: the customizable content model and custom field support flexible content structure, applicable scenarios cover small and medium-sized enterprise official websites, marketing websites, government portals, cross-border e-commerce websites, and personal blogs. That is to say, the choice between small volume and wide functionality can be solved by implementing language rather than deleting features in part.

Common questions

Question: Is the number of data tables the root cause of performance problems?Answer: Usually not the direct root cause. The number of tables itself does not slow down queries, but missing indexes, N+1-style reading, and cache misses are; the main cost brought by a large number of tables is mainly maintenance and understanding cost.

How do I add a mall-like feature in the later stage of a lightweight program?You can first use a form and an external landing page to carry the transition. If such objects will exist for a long time, it will belong to a selection issue. Expanding on the same simplified model often has a higher cost.

What is the most important thing to confirm when choosing a lightweight program?Confirm whether the content types you need to do in the next six months can be expressed by its model. The volume can be solved by upgrading the host, and insufficient model expression can only be solved by changing the system.

Related articles

PHP two high-risk vulnerabilities scored 9.2 points, what steps should the site take after the patch is released?

On October 21, 2026, PHP released the fixed versions 8.5.12, 8.4.27, 8.3.36, and 8.2.35, covering two high-risk vulnerabilities with a score of 9.2. Applying the patch is just the beginning: after the upgrade, you still need to confirm that the actual running process is using the new version, check the high-risk entry points related to the conditions for exploitation, and verify the in-depth defense of the site layer by layer, including authentication, injection, and cross-site scripting protection.

2026-11-01

How to schedule the upgrade window for the first beta version of Joomla 6.3 at the end of November, while still in the 5.4 site upgrade window

The Joomla official roadmap shows that the first Alpha of version 6.3 is scheduled for November 24, 2026, with the final release planned for April 2027; regular bug fixes for version 5.4 have ceased as of October 13, 2026, with security support ending on October 12, 2027. Sites still running on version 5.4 should prioritize the last year of security support window and complete an upgrade drill with backup and rollback plans before entering the tail end.

2026-11-01

After the AI summary covers most commercial queries, should the content selection change the approach?

There is tracking data showing that the coverage of AI Overview in business intent queries has increased from 45.75% in September 2025 to 88% in August 2026. After the display position is largely occupied by the summary, the selection should shift from wordy pages to question-based content: the title should be written as a question the user would ask, each paragraph should be self-contained as a small answer, and be able to be quoted directly without context; mass production can be facilitated by AI writing and automatic generation of title keyword descriptions.

2026-11-01

More than half of the references in AI answers come from natural ranking, is it still worth making a separate plan for keyword positions?

BrightEdge's continuous tracking of AI Overview references for 16 months shows that the proportion of overlapping pages with natural ranking has increased from 32.3% to 54.5%, with a relative increase of 69%. More than half of the references were originally from the top positions of natural ranking, so the keyword position plan is still a basic investment; GEO is responsible for writing content that can be cited independently, both sides use the same set of content assets, and it is not recommended to transfer the budget from one side to the other as a whole.

2026-11-01

Webflow e-commerce plan starts at $29 per month, what other projects in the website budget should be listed separately?

At today's comparison page level, the annual payment per month for Webflow's e-commerce standard plan, Wix Core, and Squarespace's basic e-commerce plan is about $29, $29, and $19 respectively. The subscription is just the beginning, and the annual budget for building a website should also include domain and certificate, transaction and collection fees, theme plugins and integration, operation and maintenance backup, and manual maintenance, and calculate the total account by extending the window to five years.

2026-11-01

After Cloudflare splits the AI crawler blocking into three tiers, why might it block Googlebot as well?

There is an observation that Cloudflare categorizes AI crawlers into three types of use: Search, Agent, and Training. Starting from September 15, 2026, intercepting the training category may also affect the crawling of Googlebot, as the same crawler can simultaneously have both search and training purposes. It is recommended to check the rules according to the purpose, compare the crawling logs, and keep a rollback path before enabling interception.

2026-11-01

The number of requests for AI crawlers for search purposes has increased several times within a year, so which columns of the site crawling log should be checked first?

A Q3 2026 report shows that the crawling for search purposes accounts for 8.26% of AI crawler requests, up from 4.05% last quarter and only 1.32% last year. The change in share indicates that more automated traffic is for immediate content retrieval. When troubleshooting site crawling logs, it is recommended to first look at three fields: requestor identifier, frequency per unit time, and return status code, and then decide on robots rules and anti-crawling measures.

2026-11-01

Is the search engine's view of the time factor the same for scheduled content publication and changing the publication time after publication?

Different. Schedule the release to include the final time when the page is first crawled, so that the displayed time, the time in the address, and the crawling record are consistent; if the time is changed after the release, it is easy to occur that the displayed time on the page is inconsistent with the existing snapshot, and it is necessary to recrawl to possibly update the record. Batch content should use scheduled release peak-shaving scheduling, rather than changing the time after the event, and the display口径 should also be aligned with the update time in the site map.

2026-11-01