Answer the question
In order to leave comments, you need to log in
Is the database structure correct?
Good evening.
There is a task to create a simple site with a very large number of articles - about 2 million articles. The site is the simplest without the admin panel working in conjunction with the database. There was a question of the correct organization of a DB. The main task is the fast work of unloading data from the database.
Now I have the following database structure, as a result there will be 3 tables in the database.
The first table is categories, respectively categories of articles.
Структрука таблицы categories:
id - соотвественно id категории
name - название категории
id - id записи
name - название статьи
catid - id категории (из таблицы categories)
min_descr - краткое описание статьи
views - количество просмотров статьи
meta_keywords - ключевые слова для meta_keywords
meta_descr - краткое описание для meta_description
id - id записи
postid - id статьи (связка с таблицей postid), будет стоять индекс на это поле.
text - сам текст статьи, поле будет - LONGTEXT
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question