VIEWs, Indexing & Advanced Searching Flashcards

1
Q

VIEW

A

is a virtual table created by a query

It does not store data itself but presents data from these tables

can simplify complex queries

a specific data perspective

enhance data security by restricting access to certain data.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Advantages of Using VIEWs:

A

Data Abstraction: Views can simplify the complexity of data by providing a specific

Security: Views can act as a layer of security to restrict user access to specific rows and columns of data

Query Simplification: Views allow users to save complex queries as virtual tables,

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Disadvantages of Using VIEWs:

A

Performance: Views can sometimes lead to performance issues,

Update Restrictions: Some views are not updatable or insertable,

Maintenance: If the underlying table structures change, the views may need to be updated or recreated.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

INDEX

A

a database is a data structure that improves the speed of data retrieval operations on a table.

find specific information

a database index allows
the database engine to find and retrieve specific rows much faster than it could by scanning the entire table.

are typically used on columns that are frequently searched

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Advantages of INDEX-es:

A

Improved Query Performance: Indexes provide a way to quickly locate and retrieve specific rows from a table,

Faster Joins: When multiple tables are joined in a query, indexes on the join columns help optimize the join operation, r

Efficient Data Retrieval: Indexes allow for efficient data retrieval without the need to scan the entire table, m

Facilitates Unique Constraints: INDEX-es can enforce the uniqueness of values in one or more columns, ensuring that duplicate data is not allowed in those columns.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Disadvantages of INDEX-es

A

Increased Storage Overhead: Indexes require additional storage space to store the index data structure.

Slower Data Modification: While indexes improve data retrieval speed, they can slow down INSERT, UPDATE, and DELETE operations,

Maintenance Overhead: Indexes need to be maintained, which means that as data is modified, indexes must be updated to reflect these changes.

Index Selection: Choosing the right columns to index is crucial. Creating too many indexes or indexing the wrong columns can lead to unnecessary overhead

How well did you know this?
1
Not at all
2
3
4
5
Perfectly