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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T19:45:59+00:00 2026-05-12T19:45:59+00:00

Suppose you have a few, quite large (100k+) objects in available and can provide

  • 0

Suppose you have a few, quite large (100k+) objects in available and can provide this data (e.g. name) in 20+ languages. What is an efficient way to store/handle this data in a SQL database.

The obvious way to do that looks like this – however, are there other ways which make more sense? I’m a bit worried about performance.

  CREATE TABLE "object" (
      "id" serial NOT NULL PRIMARY KEY
  );                                  
  CREATE TABLE "object_name" (
      "object_id" integer NOT NULL REFERENCES "object" ("id")
      "lang" varchar(5) NOT NULL,
      "name" varchar(50) NOT NULL 
  );

As for usage, the use will only select one language and that will result in potentially large joins over the object_name table.

Premature optimization or not, I’m interested in other approaches, if only gain some peace of mind, that the obvious solution isn’t a very stupid one.

To clarify the actual model is way more complicated. That’s just the pattern identified so far.

  • 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-12T19:45:59+00:00Added an answer on May 12, 2026 at 7:45 pm

    If you have a combined key on (object_id, lang) there shouldn’t be any joins, just an O(1) lookup, right? (Try with EXPLAIN SELECT to be sure)

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

Sidebar

Related Questions

I have seen the reverse of this question quite a few times, but have
Suppose I have a few lines out of wikipedia XML that looks like this:
I have a BNF grammar, and quite a few expressions that I am suppose
Suppose I have a few TextBoxes in a VBA form, called Text1,Text2,Text3. I'm looking
Suppose I have a few definitions like so: public interface ICategory { int ID
Hi i am new to hibernate technology and i have few issues. Suppose if
suppose I have a class with many explicit (statically allocated) members and few pointers
I have a screen that is supposed to have a few large sections of
Suppose I have a large list of words. For an example: >>> with open('/usr/share/dict/words')
We have quite a few validation methods that need to access repositories / database

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.