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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T01:08:19+00:00 2026-05-31T01:08:19+00:00

I have taken on a project from a client which requires me to set

  • 0

I have taken on a project from a client which requires me to set up a backend server and API (PHP) with communication to/fro an iOS App. I can’t go into too much detail about the app, but for the most part, it is socially based and therefore requires me to constantly update the database upon receipt of a request.

Currently, the database consists of three tables (with a fourth coming soon for comments) Users, Venues and Queues. At the moment, whenever I have a request, I just retrieve the relevant data from the database, but I am starting to wonder whether I need to start implementing methods to improve the ‘scalability’ of the database or use (something along the lines of) memcachd or Redis to improve something or other. Is this necessary as the app is social and may potentially have a large user base? And am I using a good well-performance database for hundreds of requests per second, or should I switch to another?

Thanks in advanced,

Max.

P.S Feel free to pick apart my structure, put it in the post just incase anyone had any interest in taking a look!

CREATE TABLE `Queues` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `userID` int(11) NOT NULL,
  `Creation_Date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `Last_Updated` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  `venueID` int(11) NOT NULL,
  `Wait_Time` int(10) NOT NULL,
  `Line_Length` int(10) NOT NULL,
  `Note` varchar(250) NOT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8 AUTO_INCREMENT=13 ;


CREATE TABLE `Users` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `First_Name` text NOT NULL,
  `Last_Name` text NOT NULL,
  `Username` text NOT NULL,
  `Password` text NOT NULL,
  `Email` text NOT NULL,
  `Signup_Method` text NOT NULL,
  `Signup_Date` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `Number_of_Lines` int(11) NOT NULL,
  `Number_of_Venues` int(11) NOT NULL,
  `Last_Updated` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8 AUTO_INCREMENT=27 ;


CREATE TABLE `Venues` (
  `id` int(11) NOT NULL AUTO_INCREMENT,
  `userID` int(11) NOT NULL,
  `foursquareID` int(11) NOT NULL,
  `Name` text NOT NULL,
  `Latitude` text NOT NULL,
  `Longitude` text NOT NULL,
  `Address_Line1` text NOT NULL,
  `Address_Line2` text NOT NULL,
  `Post_Code` text NOT NULL,
  `Country` text NOT NULL,
  `Description` text NOT NULL,
  `Created_At` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
  `Last_Updated` timestamp NOT NULL DEFAULT '0000-00-00 00:00:00',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB  DEFAULT CHARSET=utf8 AUTO_INCREMENT=2 ;
  • 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-31T01:08:20+00:00Added an answer on May 31, 2026 at 1:08 am

    You can put off worrying about caching methods until the need arises. For the time being, ensure your database is properly normalized. Once the site is working smoothly and starts to gain popularity, hooking in memcached will be a relatively trivial task.

    I notice a queue could belong to a user that’s different than the user that owns the queue’s venue: Queues.userID and Venues.userID via Queues.venueID. If this is not what you want then you’ll want to remove Queues.userID as the user info can be obtained be checking the queue’s venue.

    Also, if Users.Number_of_Venues is a count of the number of Venues with a certain userID, remove it as there’s no reason to store it as that information can be obtained by a quick COUNT(*). To leave it would mean lack of normalization.

    Once your schema is set, remember to properly index. That will be a life-saver in speeding up your queries.

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

Sidebar

Related Questions

I have recently taken on a project in which I need to integrate with
I have Django project on Dreamhost server which has several views that returns Json
I have been working on a project which is about data copy from one
I have taken an image from UIImagePickerController , but the file looks too big
I have created a RIA DataDomainService which I exposed to my silverlight project. The
I have taken code from a previous custom Authorization attribute and come up with
I have a project in visual c++ 2010, which contains preprocessor directives in a
I have a website project that is consuming user controls from another shared project.
This samplet is from a project I am working on. My client uses software
A colleague and I have been partnered on a project for school, in which

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.