In what context is the term "database schema" used here?

  • Topic: Comp Sci 
  • Thread starter shivajikobardan
  • Start date
  • Tags Tags
    Term
2 replies · 1K views · last reply
shivajikobardan
Messages
637
Reaction score
54
Homework Statement
database schema
Relevant Equations
None
Printed text on a white background with a yellow highlight over the first sentence: "The concept of index in Elasticsearch is roughly analogous to the database schema in a relational database." The rest of the paragraph explains type as analogous to a table and document to a record.

What I guess (based on experience) is it's asking about this.

Table student-:
Name
Roll
Grades

Table Teacher-:
Salary
Experience
Subjects Taught

This is database schema according to my guess. Is this the context used here?
A rather loose definition could be a "schematic of database". Would it be appropriate here?
 
shivajikobardan said:
This is database schema according to my guess. Is this the context used here?
A rather loose definition could be a "schematic of database". Would it be appropriate here?
yes and yes. If you do a google search of "database schema" and clik on images. This will become very clear.
Database schemas will contain:
-list of tables, and what fields they contain
-list of fields, and what kind of data they contain. (numeric, text, etc..)
-constraints on the data (uniqueness, range, list of values to select from)
-fields that are a reference to a record of another table.
-indexes to make looking up data easier.
-security access and user information
-often a way to add code to a database (user defined functions, stored procedures).

and you should be able to find that in an elasticsearch index in some form
 
willem2 said:
yes and yes. If you do a google search of "database schema" and clik on images. This will become very clear.
Database schemas will contain:
-list of tables, and what fields they contain
-list of fields, and what kind of data they contain. (numeric, text, etc..)
-constraints on the data (uniqueness, range, list of values to select from)
-fields that are a reference to a record of another table.
-indexes to make looking up data easier.
-security access and user information
-often a way to add code to a database (user defined functions, stored procedures).

and you should be able to find that in an elasticsearch index in some form
thanks for the quick heads up. i actually got it after asking the question, i was stuck in it like 6 hrs(new level of dumbness achieved lol), then i read the next few lines, it became evident.
Diagram of two brown blob-shaped outlines side by side. Left blob contains Cluster, Type and Index. Right blob contains Database and Schema, with a table icon. Dotted arrows link Cluster to Database, Type to the table, and Index to Schema.

Here's some new insights.
 
Last edited: