Jump to content

Enhancing Performance of Change History Logs in CRM


jsmith123

Recommended Posts

I’m a completely new developer so forgive me for asking something weird but any help would be appreciated.
 
I’ve been assigned a feature enhancement task for an application. 
 
The application is a CRM type application built using Core PHP / Phalcon Framework... the DB is on MySQL... it's a fully running application and needs some enhancements to existing features.
 
The CRM has a list of Contacts. Any user of the CRM who updates the profile of a contact, the system writes the change to it log.
 
There is a button called “History” when the user clicks on it, it shows the list of all changes that have been made to that particular contact… along with a couple of other information - like a revision history.
 
The changes are maintained and displayed from a few different tables in the DB.
 
The system is currently showing the changes but in plain text format.
 
Now the main requirement is to enhance this feature and make it look like a Facebook Timeline and also make sure that the page load times are much faster and retrieving the history of changes does not take a lot of time and does not affect performance of the CRM.
 

 

What should one do in such cases? What are the different ways to render information from different tables without affecting the performance.
Link to comment
Share on other sites

One thing at a time, and fixing the page to render faster is more important than the timeline.

 

First thing is to find out why it's slow. Can you do that? It'll either be in the database (running a query takes a long time) or in the code (running many queries and/or using a lot of logic that simply takes time).

 

Starting in the database, you can find what queries are being run by the code and try them yourself manually. If you find a slow one then you can start digging into why and how you can speed it up.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.