Things to watch out for in ColdFusion 9 with CF-ORM

后端 未结 4 1929
一个人的身影
一个人的身影 2020-12-12 20:40

What are some of the things you\'ve observed in ColdFusion 9 with CF-ORM (Hibernate) that one should watch out for?

4条回答
  •  春和景丽
    2020-12-12 20:52

    In conjunction with fiddling with the Hibernate logging you can also turn "maintain connections" off for your datasource.

    With SQL Server 2005 you can then launch profiler and watch the queries coming thru.

    Since maintain connections is off Hibernate will be forced to create new prepared statements each time.

    Reading prepared statements can be tough, but at least you can see the raw queries that are being generated.

    If you maintain connections these prepared statements are created once and you just see something like

    sp_execute 15, 'someparam'

    Before this was ran sp_prepexec was ran which is where the 15 comes from.

提交回复
热议问题