January 23, 2013
-
"You have to consider performance when designing such application... The preview of the pdf file is generated on the fly right?"
"Yes"
"The web page passes ... what to the back end to generate the preview image?"
"The pdf path... or file name."
"So... is there any cache?"
"No... not in the scope of prototype."
"I know, but what if you have to implement cache?"
"project老母 is using Spring Framework, Spring provides caching function?"
"Yes, but our applications are deployed to a cluster... Spring cache only works per machine / JVM..."
"So... Every machine in the cluster would have its own cache?"
"Yes, a better would be a centralized cache for a cluster..."====
"Hibernate is not feasible in production environment. I have worked in a project that tables are highly normalized, high dimension table. When you do a select through an object, Hibernate generates 1 SQL on the first table, according to the foreign key it generates 10 more SQL on the second level table. For each key in the second table it generates 10 more SQL on the third level table... The SQL statements are in separate request, so you can image how large the overhead is. At last we give up using Hibernate SQL, we hand craft our own SQL."
"Why don't you make a view in DB first, and map the object to the view?"
"Yes it is a feasible way. But not every SQL can be easily map to a view... Imagine...."無端端上左堂
====
星期五要dem比美眉睇丫...
====
終於成功起Eclipse build到project老母=.=..
問題唔在於project老母,在於我唔識用Eclipse....
點樣用Eclipse import project都好考學問...
完全唔明點解import 左project 1-9之後, 再import project 10, project 1-9會唔見曬...delete番project 10, project 1-9又出番黎
唔知點解project 10比人杯葛=.=|||令到Eclipse識得由maven repo搵library入project a 既build path...再入project B唔知點解又唔識咁做
仲有...maven project structure係src.main.java.com....架麻...
當Eclipse認到呢個係maven project既時候main.java會唔當package咁睇
唔知點解今次佢唔識睇,連main.java都計埋入package, 話我個個.java都錯package, 因為package係由com...開點算
====
其實我係咪唔expect睇咁多project 老母...應該諗下front end architecture =0=?
Recent Comments