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 7534401
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T06:00:17+00:00 2026-05-30T06:00:17+00:00

i am coding something like omegle random chat i have a table called chat_users

  • 0

i am coding something like omegle random chat i have a table called chat_users in which
i am storing ppl who are not chating with anyone they just come then i wil delete them when they start chating with other ppl

lets say
we have users named uid1,uid2,uid3

at a 1:05 and 5 sec(one any perticular time) uid1 request to chat with uid2 and get removed from table
but at that same time uid3 also got uid2 as random result then it wil be problem
cause uid2 doesnt exist its chating with uid1

how can i solve this issue??

  • 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-05-30T06:00:19+00:00Added an answer on May 30, 2026 at 6:00 am

    Use transactions.

    Clarification: Wrap the selection of the random result and the following deletion in a transaction and the problem will go away because mySQL then should take care of colliding transactions.

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

Sidebar

Related Questions

I have an entity which looks something like this: (I'm coding to the web
I am coding something like an online PHP editor. So, now I have this
I've noticed something about my coding that is slightly undefined. Say we have a
In Objective-C on Apple there is something called Key-Value Coding that allows you to
When someone codes something for example in MASM, what is it called? Coding in
So I have an array of numbers that look something like 1,708,234 2,802,532 11,083,432
OK so I'm coding something and i have a left frame, a right frame,
in my project i have a requirement like Set the version to something like
I'm looking to put something like this in my coding @a1 = qw(1 2
I honestly do not know what they are called. I have been unable to

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.