简体   繁体   中英

Architecture for crystal report

All,

Architecture for crystal report,

I have two option,

  1. Stored procedure with business logic and display data on crystal report.( tight coupled) as SP are specially designed for the reports - less reusable. but recompiled.

  2. Views to pull data and add business logic on report itself to filter data.(loose coupled) -reusable views but what about performance compared to SP?

Any suggestions are more welcome...

If I understand your question correctly, I would recommend implementing option 1.

  • By calling a stored procedure, you will be reducing network traffic because you'd be passing only parameter definitions and the procedure name, instead of the entire query string you'd be sending to the DB in option 2.

  • Using stored procedures also keeps the plan cache tidy by compiling the set of SQL statements within the stored procedure, instead of storing separate plans for each statement within the string you'd be passing to the DB in option 2.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM