TinyDB – Middleware TinyDB middleware helps us to customize database storage behavior by wrapping around the existing storage. This middleware improves the performance of the database. Caching Middleware This middleware, as its name implies, improves the speed of a database by reducing the disk I/O. The working of CachingMiddleware is as follows − First, it […]
Category Archives: tinydb
TinyDB – Extend TinyDB It is possible to extend TinyDB and modify its behaviour. There are four ways to do so − Custom middleware Custom storages Hooks and overrides Subclassing TinyDB and table In this chapter, let”s understand each of these methods in detail. Custom Middleware Sometimes the user does not want to write a […]
TinyDB – Extensions Given below is a set of TinyDB extensions that can be used for various operations − Sr.No. Operation & Description 1 TinyDBTimestamps It is an experimental extension that can be used to automatically add and update at timestamps to TinyDB documents. 2 aiotinydb It is a stable extension that enables us to […]