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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T10:42:59+00:00 2026-05-15T10:42:59+00:00

I recently learned about normalisation in my informatics class and I’m developing a multiplayer

  • 0

I recently learned about normalisation in my informatics class and I’m developing a multiplayer game using SQLite as backend database at the moment.

Some information on it:

The simplified structure looks a bit like the following:

 player_id |  level | exp  | money | inventory
---------------------------------------------------------
    1      |    3   | 120  | 400   | {item a; item b; item c}

Okay. As you can see, I’m storing a table/array in string form in the column “inventory”. This is against normalization.

But the thing is: Making an extra table for the inventory of players brings only disadvantages for me!

  • The only points where I access the database is:
    • When a player joins the game and his profile is loaded
    • When a player’s profile is saved

When a player joins, I load his data from the DB and store it in memory. I only write to the DB like every five minutes when the player is saved. So there are actually very few SQL queries in my script.

If I used an extra table for the inventory I would have to, upon loading:

  • Perform an performance and probably more data-intensive query to fetch all items from the inventory table which belong to player X
  • Walk through the results and convert them into a table for storage in memory

And upon saving:

  • Delete all items from the inventory table which belong to player X (player might have dropped/sold some items?)
  • Walk through the table and perform a query for each item the player owns

If I kept all the player data in one table:

  • I’d only have one query for saving and loading
  • Everything would be in one place
  • I would only have to (de)serialize the tables upon loading and saving, in my script

What should I do now?

Do my arguments and situation justify working against normalisation?

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

    There are a lot of possible answers, but the one that works for you is the one to choose. Keep in mind, your choice may need to change over time.

    If the amount of data you need to persist is small (ie: fits into a single table row) and you only need to update that data infrequently, and you don’t have any reason to care about subsets of that data, then your approach makes sense. As time goes on and your players gain more items and you add more personalization to the game, you may begin to push up against the limits of SQLite, and you’ll need to evolve your design. If you discover that you need to be able to query the item list to determine which players have what items, you’ll need to evolve your design.

    It’s generally considered a good idea to get your data architecture right early, but there’s no point in sitting in meetings today trying to guess how you’ll use your software in 5-10 years. Better to get a design that meets this year’s needs, and then plan to re-evaluate the design again after a year.

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

Sidebar

Ask A Question

Stats

  • Questions 449k
  • Answers 449k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer The routes you register in your global.asax.cs file are only… May 15, 2026 at 8:09 pm
  • Editorial Team
    Editorial Team added an answer as it was mentioned already, you cannot use these two… May 15, 2026 at 8:09 pm
  • Editorial Team
    Editorial Team added an answer I would add a class to the field if the… May 15, 2026 at 8:09 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.