作者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
推 horngsh:所以說序列化只能用在Win Form App囉? 06/18 17:21
推 Turbine:不限用於Win Form App 06/18 23:17
→ Turbine:分散式環境也可以用 要先反序列化 要有對應的class檔案 06/18 23:19
→ FantasyRyu:提分散式遙遠了點,基本上序列化連console都能用 06/19 00:04