Lightspeed vs NHibernate

后端 未结 6 1896
鱼传尺愫
鱼传尺愫 2021-02-05 16:51

What is the experience with LightSpeed? The comparison provided by Mindscape doesn\'t say too much about NHibernate. Lightspeed seems flexible, but I don\'t see much about per

6条回答
  •  猫巷女王i
    2021-02-05 17:37

    On performance, from this page

    Eager & lazy loading No N+1 problem. Includes "named aggregates." That is, giving a name to particular eager load graph. Watch the screencast.

    Dont underestimate this. This means if you load a list of 200 items, MOST ORM's will run 201 queries in a lot of cases. Lightspeed doesn't. It's one of the (very) few that dont.

    If you are looking for something which is a few 100ms quicker in a few edge cases, good luck benchmarking stuff. I like NH in theory, and I dont think I'd ever NOT use an ORM, but for most of what I've done, NH is total overkill - I end up spending so much time maintaining the meta data, class files, mappings et al, and it's ... interesting ... to test. well, it was for us, anyway.

提交回复
热议问题