Tagged articles
159 articles
Page 2 of 2
Programmer DD
Programmer DD
Jul 5, 2022 · Databases

SQLite 2018: New SQL Features – Booleans, Window Functions, Upserts & More

SQLite, often underestimated, has added powerful SQL capabilities in 2018—including true/false literals, advanced boolean checks, window functions, FILTER clauses, upsert support via INSERT ON CONFLICT, and column renaming—bringing its feature set closer to major databases while retaining its lightweight, file‑based architecture.

Boolean LiteralsSQLSQLite
0 likes · 12 min read
SQLite 2018: New SQL Features – Booleans, Window Functions, Upserts & More
Tencent Cloud Developer
Tencent Cloud Developer
Apr 25, 2022 · Databases

Implementing a Simple SQLite‑like Database in Go

The article walks through building a minimal SQLite‑style database in Go, covering memory‑disk page storage, B‑tree indexing, simple SQL parsing for INSERT and SELECT, row serialization, a pager that flushes pages, and a basic REPL, while highlighting current single‑page limits and future extensions.

B+TreeBackend DevelopmentGo
0 likes · 12 min read
Implementing a Simple SQLite‑like Database in Go
Laravel Tech Community
Laravel Tech Community
Feb 24, 2022 · Databases

SQLite 3.38.0 Released with New JSON Operators, Enhanced Date/Time Functions, and Query Planner Improvements

SQLite version 3.38.0 introduces new JSON operators compatible with MySQL and PostgreSQL, built‑in JSON functions, added unixepoch() and auto/julianday modifiers for date/time, renamed printf() to format(), enhanced virtual table interfaces, CLI columnar output options, and query planner optimizations using Bloom filters and balanced merge trees.

CLIDatabase EngineQuery Planner
0 likes · 4 min read
SQLite 3.38.0 Released with New JSON Operators, Enhanced Date/Time Functions, and Query Planner Improvements
WeChat Client Technology Team
WeChat Client Technology Team
Feb 22, 2022 · Mobile Development

How iOS WeChat Supercharged Search with SQLite FTS5 and Custom Tokenizers

This article details the 2021 overhaul of iOS WeChat's full‑text search, covering engine selection, segment‑merge optimization, a new VerbatimTokenizer, multi‑level separator support, table schema choices, asynchronous index updates, and extensive performance gains across chat, contacts, and favorites.

FTS5Full‑Text SearchPerformance Optimization
0 likes · 27 min read
How iOS WeChat Supercharged Search with SQLite FTS5 and Custom Tokenizers
Sohu Tech Products
Sohu Tech Products
Oct 27, 2021 · Backend Development

Using PrettyTable in Python to Create Formatted Command‑Line Tables

This article introduces the PrettyTable Python library, explains how to install it, demonstrates creating tables with headers, adding rows and columns, importing data from CSV, databases, or HTML, and shows various output formats and styling options for clear command‑line presentation.

CSVData PresentationPython
0 likes · 13 min read
Using PrettyTable in Python to Create Formatted Command‑Line Tables
Alibaba Terminal Technology
Alibaba Terminal Technology
Oct 13, 2021 · Mobile Development

How Youku Built HarmonyOS Widgets: A Deep Dive into Mobile Development

This article details Youku’s practical experience developing HarmonyOS widgets, covering Ability packaging, mixed Android‑HarmonyOS builds, card UI designs, lifecycle callbacks, data fetching via WebView, local caching with SQLite, update strategies, and lessons learned for future mobile development on HarmonyOS.

AbilityData CachingHarmonyOS
0 likes · 15 min read
How Youku Built HarmonyOS Widgets: A Deep Dive into Mobile Development
Programmer DD
Programmer DD
Aug 21, 2021 · Backend Development

Why althttpd Is the Ultra‑Lightweight Web Server Behind SQLite.org

Discover how althttpd, the minimalist C‑based web server created by SQLite’s author Richard Hipp, powers the high‑traffic SQLite.org site with minimal resources, its simple design philosophy, low‑cost hardware usage, and why it makes an excellent learning project for developers.

C programmingSQLiteWeb server
0 likes · 3 min read
Why althttpd Is the Ultra‑Lightweight Web Server Behind SQLite.org
Python Programming Learning Circle
Python Programming Learning Circle
Aug 11, 2021 · Databases

Generating One Billion SQLite Rows in Under a Minute: Python, PyPy, and Rust Performance Comparison

A programmer needed to create a billion‑row SQLite test database within a minute, found a naïve Python script unbearably slow, applied batch inserts and SQLite PRAGMA tweaks, then compared CPython, PyPy, and Rust implementations, ultimately achieving sub‑minute runtimes with Rust and highlighting best‑practice optimizations.

BenchmarkingPyPyPython
0 likes · 6 min read
Generating One Billion SQLite Rows in Under a Minute: Python, PyPy, and Rust Performance Comparison
Tencent Cloud Developer
Tencent Cloud Developer
Jul 27, 2021 · Backend Development

Comprehensive Guide to Go Unit Testing: Tools, Mocking, and Dependency Management

This guide explains Go’s built‑in testing framework, assertion libraries, table‑driven and sub‑tests, and demonstrates how to mock functions, structs, interfaces, databases, and Redis using tools such as ngmock, gomock, sqlmock and miniredis, while covering test setup, teardown, coverage handling, and best‑practice insights.

GoMockSQLite
0 likes · 21 min read
Comprehensive Guide to Go Unit Testing: Tools, Mocking, and Dependency Management
ITPUB
ITPUB
Jun 28, 2021 · Databases

How a 2,592‑Line C File Became the World’s Most Ubiquitous Database

The article recounts how Richard Hipp created SQLite—a tiny, fully embedded 900 KB database written in a single C file—that now powers billions of devices, and how his later Althttpd web server handles hundreds of thousands of requests daily, illustrating his prolific open‑source legacy.

AlthttpdDatabase HistoryRichard Hipp
0 likes · 7 min read
How a 2,592‑Line C File Became the World’s Most Ubiquitous Database
The Dominant Programmer
The Dominant Programmer
Dec 7, 2020 · Mobile Development

How to Perform CRUD on SQLite with Android Room ORM

This article walks through using Google’s Room ORM in an Android project to create a SQLite database, define entities and DAOs, set up a singleton database instance, and implement add, query, fuzzy search, and delete operations via a simple UI.

AndroidCRUDORM
0 likes · 11 min read
How to Perform CRUD on SQLite with Android Room ORM
Sohu Tech Products
Sohu Tech Products
Dec 2, 2020 · Mobile Development

How iOS Retrieves Night‑Mode Launch Images from applicationState.db

This article explains how iOS obtains the night‑mode launch image by analyzing the naming pattern of cached images, inspecting the SQLite‑based applicationState.db file, extracting the XBApplicationSnapshotManifest entry, and reconstructing the actual image path using system‑level data structures.

Mobile DevelopmentSQLiteapplicationState.db
0 likes · 9 min read
How iOS Retrieves Night‑Mode Launch Images from applicationState.db
MaGe Linux Operations
MaGe Linux Operations
Aug 8, 2020 · Databases

Master SQLite in Python: From Setup to Pandas Integration

This tutorial walks Python developers through using the built‑in sqlite3 library to create, query, and manage SQLite databases, demonstrates how to connect with SQL clients like DBeaver, and shows seamless integration with Pandas data frames for advanced data handling.

PythonSQLSQLite
0 likes · 8 min read
Master SQLite in Python: From Setup to Pandas Integration
vivo Internet Technology
vivo Internet Technology
Aug 5, 2020 · Mobile Development

An ORM Wrapper for Native SQLite in Android SDKs

The article presents Sponsor, a lightweight ORM‑style wrapper for Android’s native SQLite that uses runtime annotations and dynamic proxies to generate Retrofit‑like, type‑safe CRUD APIs, automatically handling table creation, upgrades, and threading while keeping performance overhead negligible for SDK developers.

AndroidDynamic ProxyGenerics
0 likes · 18 min read
An ORM Wrapper for Native SQLite in Android SDKs
Laravel Tech Community
Laravel Tech Community
May 25, 2020 · Databases

What’s New in SQLite 3.32.0? Key Features and Enhancements Explained

SQLite 3.32.0, the latest release of the world’s most widely used database engine, introduces approximate ANALYZE support, a bytecode virtual table, new SQL functions, expanded parameter limits, numerous CLI enhancements, and behavior changes that align the LIKE operator with PostgreSQL, offering developers richer functionality and improved compatibility.

CLI EnhancementsRelease NotesSQL
0 likes · 3 min read
What’s New in SQLite 3.32.0? Key Features and Enhancements Explained
ITPUB
ITPUB
Jan 16, 2020 · Information Security

How SQL Injection Works and How to Prevent It with Safe SQLite Code

This article explains what SQL injection is, demonstrates a vulnerable SQLite example that drops a table using malicious input, shows why the attack works, and provides practical prevention techniques such as using parameterized queries, input validation, unpredictable table names, and regular backups to secure databases.

SQL injectionSQLiteinput validation
0 likes · 8 min read
How SQL Injection Works and How to Prevent It with Safe SQLite Code
JD Retail Technology
JD Retail Technology
Oct 25, 2019 · Backend Development

Design and Optimization Strategies for High‑Concurrency Instant Messaging Processing

This article explains how to handle high‑concurrency instant‑messaging scenarios by designing message deduplication, optimizing SQLite write performance with batch inserts and WAL mode, improving query speed with indexes and caching, and reducing UI refresh overhead through delayed and scroll‑aware updates.

Instant MessagingMessage DeduplicationPerformance Optimization
0 likes · 19 min read
Design and Optimization Strategies for High‑Concurrency Instant Messaging Processing
21CTO
21CTO
Dec 27, 2018 · Databases

SQLite vs MySQL vs PostgreSQL: Which Database Fits Your Needs?

This article compares SQLite, MySQL, and PostgreSQL across architecture, features, scalability, use cases, and limitations, helping developers choose the most suitable relational database for their specific application requirements.

PostgreSQLRDBMSSQLite
0 likes · 11 min read
SQLite vs MySQL vs PostgreSQL: Which Database Fits Your Needs?
WeChat Client Technology Team
WeChat Client Technology Team
Dec 6, 2018 · Databases

How SQLiteLint Detects Hidden Performance Issues in Mobile Apps

This article introduces SQLiteLint, a runtime analysis tool that automatically checks SQLite usage in mobile apps for index problems, redundant indexes, SELECT *, AUTOINCREMENT, missing prepared statements, and without‑rowid opportunities, enabling developers to catch performance issues before release.

Index OptimizationMobile DevelopmentSQLite
0 likes · 17 min read
How SQLiteLint Detects Hidden Performance Issues in Mobile Apps
MaGe Linux Operations
MaGe Linux Operations
Dec 21, 2017 · Databases

Master Python Database Operations: SQLite, MySQL, LMDB & LevelDB

This guide walks through installing and using four Python‑compatible databases—SQLite, MySQL, LMDB, and LevelDB—covering environment setup, core APIs, common CRUD patterns, and complete runnable examples to help developers choose and operate each storage engine effectively.

Database tutorialLMDBLevelDB
0 likes · 9 min read
Master Python Database Operations: SQLite, MySQL, LMDB & LevelDB
Hujiang Technology
Hujiang Technology
Dec 18, 2017 · Mobile Development

An Introduction to Android Room: Entities, DAO, Database, Migrations, and Advanced Usage

This article provides a comprehensive guide to Android's Room persistence library, covering the creation of Entity classes, defining Data Access Objects (DAO), building the RoomDatabase, handling foreign keys, embedded objects, query methods, LiveData and RxJava return types, as well as database migrations and type converters for complex data types.

AndroidMobile DevelopmentORM
0 likes · 11 min read
An Introduction to Android Room: Entities, DAO, Database, Migrations, and Advanced Usage
WeChat Client Technology Team
WeChat Client Technology Team
Oct 18, 2017 · Databases

How WeChat Supercharged Mobile Full‑Text Search with SQLite FTS Optimizations

This article explains the principles of SQLite’s Full‑Text Search extension, details WeChat’s architecture for mobile search, and shares practical performance‑tuning techniques—including custom tokenizers, offset function improvements, and SQL‑level ranking—to achieve sub‑50 ms query times on billions of records.

Full‑Text SearchMobile DevelopmentSQLite
0 likes · 13 min read
How WeChat Supercharged Mobile Full‑Text Search with SQLite FTS Optimizations
WeChat Client Technology Team
WeChat Client Technology Team
Jun 15, 2017 · Databases

How WCDB’s WINQ Eliminates SQL String Concatenation and Injection Risks

This article examines WCDB’s design principles for efficient, complete, and easy-to-use client-side databases, explains the pitfalls of SQL string concatenation such as code redundancy, debugging difficulty, and injection attacks, and describes how WCDB’s WINQ abstraction and ORM layer safely encapsulate SQLite syntax to enable concise, compile-time-checked queries.

C++ORMSQL injection
0 likes · 10 min read
How WCDB’s WINQ Eliminates SQL String Concatenation and Injection Risks
ITPUB
ITPUB
Jun 9, 2017 · Databases

Master SQLite: From Installation to Advanced Queries in One Guide

This comprehensive SQLite tutorial walks beginners through what SQLite is, how to install it on Windows and Linux, essential syntax, CRUD operations, database objects, functions, and language-specific programming interfaces, providing step‑by‑step instructions and visual aids for practical mastery.

InstallationSQLSQLite
0 likes · 10 min read
Master SQLite: From Installation to Advanced Queries in One Guide
MaGe Linux Operations
MaGe Linux Operations
May 23, 2017 · Backend Development

How to Build a Python Zhihu Web Scraper: Login, User Data, and More

This article walks through building a Python web scraper for Zhihu, covering login simulation, extracting user profiles, answer likers, followers, avatars, and all answers of a question, and storing the collected data in SQLite, while highlighting challenges like captcha and anti‑scraping limits.

SQLitebeautifulsoupdata-extraction
0 likes · 10 min read
How to Build a Python Zhihu Web Scraper: Login, User Data, and More
Tencent TDS Service
Tencent TDS Service
Apr 27, 2017 · Databases

Cutting WeChat SQLite Corruption in Half: Strategies and Lessons

Facing a 0.02% SQLite corruption rate that threatened years of chat history, the WeChat mobile team identified three main causes—insufficient space, power loss, and sync failures—and implemented space management, full sync settings, and master‑table backups, halving damage and doubling repair success.

BackupData ReliabilityDatabase Optimization
0 likes · 9 min read
Cutting WeChat SQLite Corruption in Half: Strategies and Lessons
Hujiang Technology
Hujiang Technology
Mar 20, 2017 · Databases

Cross‑Platform SQLite Development with Free Pascal and CodeTyphon

This tutorial demonstrates how to build a single, reusable SQLite library in Free Pascal using CodeTyphon, covering platform‑specific APIs, export conventions for Android, iOS, PC, and detailed compilation and usage examples across Android, iOS, macOS, Linux, and Windows.

AndroidCodeTyphonFree Pascal
0 likes · 9 min read
Cross‑Platform SQLite Development with Free Pascal and CodeTyphon
WeChat Client Technology Team
WeChat Client Technology Team
Aug 15, 2016 · Databases

Boosting SQLite Performance on iOS: Threading, I/O, and Busy Retry Optimizations

This article explains how WeChat's iOS client tackled SQLite performance bottlenecks by introducing multi‑handle threading, enabling WAL mode, redesigning the Busy‑Retry mechanism, and applying I/O enhancements such as preserving WAL size and mmap usage, resulting in over 90% reduction in perceived lag.

Database OptimizationSQLiteconcurrency
0 likes · 14 min read
Boosting SQLite Performance on iOS: Threading, I/O, and Busy Retry Optimizations
MaGe Linux Operations
MaGe Linux Operations
Aug 25, 2015 · Databases

Why SQLite Might Be the Perfect Database for Mobile Apps

This article introduces SQLite, a lightweight ACID‑compliant relational database widely used in mobile devices, detailing its zero‑configuration design, key features, limitations, transaction and locking mechanisms, and the Write‑Ahead Logging mode that enables concurrent reads and writes.

Embedded DatabaseMobile DevelopmentSQLite
0 likes · 11 min read
Why SQLite Might Be the Perfect Database for Mobile Apps
WeChat Client Technology Team
WeChat Client Technology Team
Aug 24, 2015 · Databases

How We Boosted SQLite Chat Performance: Fragment Caching, Table Splitting, and Index Refactoring

This article details a multi‑stage performance overhaul of a large‑scale chat application's SQLite database, covering trace‑based I/O analysis, view caching with Fragments, table‑splitting experiments, index size reduction, and the development of a PageTracer tool to quantify page‑level gains.

AndroidFragmentPageTracer
0 likes · 21 min read
How We Boosted SQLite Chat Performance: Fragment Caching, Table Splitting, and Index Refactoring