Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7990413
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T13:00:02+00:00 2026-06-04T13:00:02+00:00

My webservices are as structured as follows: Receive request Parse and validate input Do

  • 0

My webservices are as structured as follows:

  1. Receive request
  2. Parse and validate input
  3. Do actual webservice
  4. Validate output

I am primarily using logging for debugging purposes, if something went wrong I want to know what the request was so I can hope to reproduce it (ie. send the exact same request).

Currently I’m logging to a MySQL database table. After 1. a record is created, which is updated with more info after 2. and 3. and cleaned up after 4. (Logs of successful requests are pruned).

I want the logging to be as quick and painless as possible. Any speed up here will considerably improve overall performance (round trip of each request).

I was thinking of using INSERT DELAYED but I can’t do that because I need the LAST_INSERT_ID to update and later delete the log record, or at least record the status of the request (ie. success or error) so I know when to prune.

I could generated a unique id myself (or at least an id that is ‘unique enough’) but even then I wont know the order of the DELAYED statements and I might end up trying to update or delete a record that doesn’t exist yet. And since DELAYED also removes the ability to use NUM_AFFECTED_ROWS I can’t check if the queries are effected.

Any suggestions?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T13:00:04+00:00Added an answer on June 4, 2026 at 1:00 pm

    I figured I can probably just do a REPLACE DELAYED and do the pruning some other time. (with a DELETE DELAYED).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've got a Python webservice using SOAPpy. The webservice server is structured as shown
I have a restful webservice which receives some structured data which is put straight
I've been using Webservices so long. But,so far up to what I know,I haven't
We've sets of webservices and we have to make request on clientside (sending request
I am connecting to a WCF based webservice. For certain methods, the input contains
I have next package structure webService.ear -- dependency.jar -- some.class Can I remove some.class
We have HTTP webservices that are RPC. They return XML representing the object the
I have a few webservices (.net 2.0/ C#) used by many partners. One of
We have this software that has a webservices component. Now, the administrator of this
My organization is working on building RESTful webservices on JBoss appserver. The QA team

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.