Re: [問題] NHibernate

看板C_Sharp (C#)作者 (特而)時間18年前 (2007/06/18 07:33), 編輯推噓2(202)
留言4則, 3人參與, 最新討論串2/2 (看更多)
分享一個老外寫的相關文章 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

06/18 17:21, , 1F
所以說序列化只能用在Win Form App囉?
06/18 17:21, 1F

06/18 23:17, , 2F
不限用於Win Form App
06/18 23:17, 2F

06/18 23:19, , 3F
分散式環境也可以用 要先反序列化 要有對應的class檔案
06/18 23:19, 3F

06/19 00:04, , 4F
提分散式遙遠了點,基本上序列化連console都能用
06/19 00:04, 4F
文章代碼(AID): #16TSJMPU (C_Sharp)
討論串 (同標題文章)
文章代碼(AID): #16TSJMPU (C_Sharp)