English 中文(简体)
数据库的堆放和缓存
原标题:Database Hoarding and Caching

数据库缓存和 Caching 之间有什么区别吗? 在我看来它们是一样的。 我知道当设备与服务器断开时, 囤积与数据库的使用有关系 。 这有什么区别吗? 这有什么区别呢?

最佳回答

缓存更适合需求请求, 缓存中需要的缓存数据会缓存缓存缓存中的数据。 通常会存储在存储中, 过一段时间后清除它, 以避免您无法在断开模式下运行的缓存数据 。 另外一个替代方案更适合断开模式, 将所需的数据预发到本地缓存中, 在某些执行中, 将尝试将其与远程数据库同步 。 这样您仍然可以在断开模式下运行, 但您可能会看到缓存数据 。

You can think of the same semantics in IMDG (In memory data grids) where a remote client can cache the data on demand or pre-fetch the data and have it synchronized with the remote IMDG asynchronously behind the scenes. GigaSpaces XAP provides exactly this capabilities with its in memory data grid, the first on demand caching concept is called Local Cache while the second pre-fetching concept is called Local View where you specify upon creation which type of data should be preloaded and behind the scenes it will be kept synchronized with changes done in the data grid.

http://www.gigaspaces.com/datagrid http://www.gigaspaces.com/wiki/display/XAP9/Client+Side+Caching

Eitan 爱坦

问题回答

与服务器的连通性强时, 就会进行缓存。 在现阶段, 客户会变得积极, 并预设基于用户访问模式的数据 。 另一侧的缓存与连接性无关, 它的操作在本地根据常用数据进行 。

移动设备并不总是连接服务器或网络, 设备也不从服务器或网络 fro 中获取数据 。 相反, 设备会缓存某些特定的数据, 未来计算可能需要这些数据, 在设备与服务器或网络连接的间隔内。 Caching 需要将选定数据的副本或数据库的一部分从与大数据库连接的系统中保存。 缓存的数据被存储在移动设备数据库中。 将缓存的数据存放在数据库中可以确保即使设备与网络没有连接, 数据库中所需的数据也可用于计算 。

一些囤积的事例是下载的铃声、音乐等,也可以在离线时使用。

连接到服务器时会使用缓存,而缓存则没有任何连接。两种方式都相同:它们存储经常搜索的数据。它们存储应用程序设备压缩 DB 。





相关问题
what is wrong with this mysql code

$db_user="root"; $db_host="localhost"; $db_password="root"; $db_name = "fayer"; $conn = mysqli_connect($db_host,$db_user,$db_password,$db_name) or die ("couldn t connect to server"); // perform query ...

Users asking for denormalized database

I am in the early stages of developing a database-driven system and the largest part of the system revolves around an inheritance type of relationship. There is a parent entity with about 10 columns ...

Easiest way to deal with sample data in Java web apps?

I m writing a Java web app in my free time to learn more about development. I m using the Stripes framework and eventually intend to use hibernate and MySQL For the moment, whilst creating the pages ...

join across databases with nhibernate

I am trying to join two tables that reside in two different databases. Every time, I try to join I get the following error: An association from the table xxx refers to an unmapped class. If the ...

How can I know if such value exists in database? (ADO.NET)

For example, I have a table, and there is a column named Tags . I want to know if value programming exists in this column. How can I do this in ADO.NET? I did this: OleDbCommand cmd = new ...

Convert date to string upon saving a doctrine record

I m trying to migrate one of my PHP projects to Doctrine. I ve never used it before so there are a few things I don t understand. In my current code, I have a class similar to this: class ...

热门标签