Re: [問題] NHibernate
分享一個老外寫的相關文章
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
06/18 17:21, 1F
推
06/18 23:17, , 2F
06/18 23:17, 2F
→
06/18 23:19, , 3F
06/18 23:19, 3F
→
06/19 00:04, , 4F
06/19 00:04, 4F
討論串 (同標題文章)
完整討論串 (本文為第 2 之 2 篇):
3
4
C_Sharp 近期熱門文章
PTT數位生活區 即時熱門文章