I have custom webpart which gets data from external database using BCS. When I add the webpart in a webpart zone, it queries the BDC to get data so it take time to insert webpart. I only want to query data in display mode.
Assuming you have created this WebPart yourself, you should check the SPControlMode. Example: