Content Access APIs
How can we access our content?
SQL access is difficuly and discouraged
Two completely different Fatwire APIs:
- Java Content API - slow
- Fatwire JSP tag library - not as slow
Both APIs execute a whole load of SQL to get the content you want
You are really rather limited by how you can access data.
You cannot access the data using SQL in the database easily and this is positively discouraged. Instead FW provide two APIs for accessing your content.
One is a JSP tag library. The other is a java API.
We opted for the Java API as this would seem to provide the opportunity to write an abstract data access layer. However we have since realised that the two APIs are quite seperate pieces of code. The Java API performs significantly slower than the FW tag libs.
Both APIs launch many SQL queries at the database. Infact we found out that for each extra attribute, field or whatever would require a seperate SQL statement to retrieve that piece of content.
Also the Java API would interfere with FW's caching something that is important with FW as it relies on caching to achieve any decent performance.
It wasn't until we were having significant performance problems after we had gone live that FW sent one of their top guys to spend some time looking at our problems with caching. It was then that we learned how FW caching worked - 8 months too late.