Answered: It takes too long to save when user ask questions, why?

Post date: 2022-05-28 00:34:14
Views: 487

Try applying these changes: https://github.com/q2a/question2answer/pull/910

If you want to apply additional performance improvements at the expense of not being able to search for posts (like not updating the qa_words table), that will boost performance more.

But please, DO let me know the times things take BEFORE these changes and AFTER these changes. To properly test it, do this:

  1. Backup your current file (the one with those changes)
  2. Replace it with the official standard file
  3. Run the tests I mentioned in the comment above and take a note (you can measure using the web browser inspector, in the networking tab you'll see the requests)
  4. Apply the changes from my pull request
  5. Execute step 3 again
  6. Share the results here
Obviously, if you then want to apply more changes, go ahead. The thing is that these changes won't sacrifice any feature, while more "aggressive" changes, will.
Please click Here to read the full story.
 
Other Top and Latest Questions:
McDonald's is hosting an investor day as its U.S. business struggles. Here are 4 things to expect
Oil little changed after Trump tells UN that Iran will make a deal after midterm elections
Book: Murderland: Crime and Bloodlust in the Time of Serial Killers
Movie: Interstate 60
Movie: Resident Evil: Apocalypse
Where to buy Mahjong set (details inside)
Trump, Xi seek trade stability and deals, but AI, tariffs and Iran loom large. What to watch
Stocks making the biggest moves midday: Lennar, Capri, Vicor, Amgen & more
Peloton is revamping its treadmills with new features in the next phase of its turnaround
DraftKings CEO doesn’t know why his stock loves bad prediction market news. Wall Street says it’s rational