作者Turbine (特而)
看板C_Sharp
标题Re: [问题] NHibernate
时间Mon Jun 18 07:33:41 2007
分享一个老外写的相关文章
Serialization provides the ability to
write a snapshot of a network of objects (the state of the application) to a byte
stream, which may then be persisted to a file or database.
Why not use serialization for the persistence layer? Unfortunately, a serialized
network of interconnected objects can only be accessed as a whole; it’s impossible
to retrieve any data from the stream without deserializing the entire stream. Thus,
the resulting byte stream must be considered unsuitable for arbitrary search or
aggregation of large datasets. It isn’t even possible to access or update a single
object or subset of objects independently. Loading and overwriting an entire
object network in each transaction is no option for systems designed to support
high concurrency.
Given current technology, serialization is inadequate as a persistence mechanism
for high concurrency web and enterprise applications. It has a particular
niche as a suitable persistence mechanism for desktop applications.
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 123.192.149.36
1F:推 horngsh:所以说序列化只能用在Win Form App罗? 06/18 17:21
2F:推 Turbine:不限用於Win Form App 06/18 23:17
3F:→ Turbine:分散式环境也可以用 要先反序列化 要有对应的class档案 06/18 23:19
4F:→ FantasyRyu:提分散式遥远了点,基本上序列化连console都能用 06/19 00:04