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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T10:50:26+00:00 2026-05-19T10:50:26+00:00

I have any number of users in a database (this could be 100, 2000,

  • 0

I have any number of users in a database (this could be 100, 2000, or 3) what i’m doing is using mysql “show tables” and storing the table names in an array, then i’m running a while loop and taking every table name (the user’s name) and inserting it into some code, then i’m running said piece of code for every table name. With 3 users, this script takes around 20 seconds. It uses the Twitter API and does some mysql inserts. Is this the most efficient way to do it or not?

  • 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-19T10:50:27+00:00Added an answer on May 19, 2026 at 10:50 am

    Certainly not!

    I don’t understand why you store each user in their table. You should create a users table and select from there.

    It will run in 0.0001 seconds.

    Update:

    A table has rows and columns. You can store multiple users in rows, and information about each user in columns.

    Please try some database design tutorials/books, they wil help you a great deal.

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

Sidebar

Related Questions

Users on my site can have any number of email addresses linked to their
I have a fairly large database containing a number of different tables representing different
I have an HTML form where the user can type in any number:5, 8,
I have a Jquery Mobile collapsible set , which can have any number of
I have a function that can accept any number of arguments... const getSearchFields =
I have a UL that contain any number of LIs. I am trying to
I have a CListCtrl control that has 2 columns and any number of rows.
I have an an offer, that can be in any number of categories. I
Say I want to have a method that takes any kind of number, is
I have phone number. Is there any way to check whether the phone number

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.