Home >Web Front-end >JS Tutorial >#DAYSOFCODE: Day 11

#DAYSOFCODE: Day 11

DDD
DDDOriginal
2025-01-06 18:52:41833browse

#DAYSOFCODE: Day 11

Hello ?

Worked on improving the speed of updating a comment status from default to "retracted" and vice versa. It was a time sink tracking what specific parts of the program are actually slow. One of the reasons (maybe?) why my program slow was because of the frequent reconnection-disconnection to my db which was solved by putting initializing the db part to a separate script. Simple fix. Next, I forget to set SQLite to PRAGMA journal_mode = WAL. Very important for write heavy stuff.

Anyways, that's all. CiaoooOOO!

The above is the detailed content of #DAYSOFCODE: Day 11. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn