MySQL offers several table types, which refer to different storage engines. The two most important are InnoDB and MyISAM. The MyISAM type has no transactions and is not good at handling mixed reads and writes, but it is fast at writing or reading. The InnoDB type is best for normal mixed database activity. In Figure 11.8, we will most likely write to an InnoDB engine for transactions, and then replicate to MyISAM for text search and read speed. Two other types are useful for specific purposes. The Memory type is fast but has no disk storage, so is appropriate for caching. We can copy translation tables, pricing, and other nonvolatile information into a cache to avoid database access. We can even cache transient state to allow quick access on subsequent visits in a session. The Merge type can be useful for logs, since it allows us to maintain a different physical file for each day or week of activity, yet combine them when needed. Figure 11.9 shows these four storage engines (table types) used together in a Web application.
MySQL offers several table types, which refer to different storage engines. The two most important are InnoDB and MyISAM. The MyISAM type has no transactions and is not good at handling mixed reads and writes, but it is fast at writing or reading. The InnoDB type is best for normal mixed database activity. In Figure 11.8, we will most likely write to an InnoDB engine for transactions, and then replicate to MyISAM for text search and read speed. Two other types are useful for specific purposes. The Memory type is fast but has no disk storage, so is appropriate for caching. We can copy translation tables, pricing, and other nonvolatile information into a cache to avoid database access. We can even cache transient state to allow quick access on subsequent visits in a session. The Merge type can be useful for logs, since it allows us to maintain a different physical file for each day or week of activity, yet combine them when needed. Figure 11.9 shows these four storage engines (table types) used together in a Web application.
การแปล กรุณารอสักครู่..
