Updating inventory in a bulk action

By: Dr. Petra Ambrosius | Asked: 04/02/2025
ForumsCategory: General questionsUpdating inventory in a bulk action
Dr. Petra Ambrosius asked 4 weeks ago

Our problem with Formidable Forms as an article management system: We want to automatically adjust the stock levels of multiple different items at the same time. The entries are stored in Form A. When we change the calculated stock in View V (based on Form A), we want it to be directly updated in Form A.

2 Answers
Victor Font Staff answered 4 weeks ago

Very easy, use Ajax and front end editing.

Dr. Petra Ambrosius answered 4 weeks ago

Thank you for your quick response. I am using edit in Place for each item - this takes a Long time. How can i can fix this? Is there a Tutorial somewhere?

Victor Font Staff replied 4 weeks ago

There are several reasons why AJAX calls may respond slowly. Here are some of the most common causes:

1. Server-Side Bottlenecks
- Slow Database Queries – If the AJAX request fetches data from a database, inefficient queries (e.g., missing indexes, unoptimized joins, or large dataset retrieval) can slow down responses.
- **High Server Load** – If the web server is handling too many requests, it may take longer to process new AJAX calls.
- Inefficient Code Execution – Poorly optimized PHP, Python, or other backend code can cause delays in processing.
- Blocking Operations – Long-running processes, such as file uploads, API calls, or external service requests, can block responses.

2. Network Latency
- Slow Internet Connection – If the user has a weak network connection, AJAX requests will take longer to reach the server and return responses.
- High Latency Between Client and Server – Geographic distance or network congestion can slow down request-response times.

3. Large Payload Size
- Excessive Data Transfer – If the AJAX request sends or receives large amounts of data (e.g., big JSON responses, high-resolution images, or unnecessary metadata), it takes longer to process.
- Uncompressed Responses – Not using compression (e.g., Gzip, Brotli) can result in slower data transfers.

4. Frontend Issues
- Blocking JavaScript Execution – If the page has long-running JavaScript tasks, it can delay AJAX handling.
- Inefficient DOM Updates – If the response triggers extensive DOM updates, rendering delays may occur.
- Multiple Simultaneous Requests – Too many concurrent AJAX requests can overwhelm the browser or server, leading to queuing delays.

5. API Rate Limiting & Third-Party Dependencies
- Throttled API Calls – If the AJAX request interacts with a third-party API with rate limits, the request might be delayed.
- Slow External Services – Dependencies on external APIs (e.g., payment gateways, analytics tools) can introduce delays.

6. Caching Issues
- No Server-Side Caching – If responses are dynamically generated each time without caching, it increases response time.
- Browser Cache Misses – If caching headers are not set properly, the browser may re-fetch data instead of using cached responses.

The bottom line is that it's not possible to recommend options for speeding up your site's responsiveness without a significant amount of troubleshooting and digging into your system. It's not something community volunteers can help with.

I suggest you open a ticket with Strategy 11 or engage a developer here: https://formidable-masterminds.com/developers-directory/

Victor Font Staff replied 4 weeks ago

I received the email from your response even though it didn't post here. Front end editing IS Ajax. I'll respond to your PM shortly.

Making the Best WordPress Plugin even better - Together

Take on bigger projects with confidence knowing you have access to an entire community of Formidable Experts and Professionals who have your back when the going gets tough. You got this!
Join the community
crossarrow-right