A command, will have several execution plans. Of the possibilities would serve targeted selected a best execution plan, this process is called optimization. Query optimizer is the most important components in a system of the database SQL, because it can handle different conditions without having to change the program.
For example to process a SELECT command, the SQL Server run the following commands:
- SQL trace and split into logical units such as keywords, expressions, operators, and the identifier.
- Formed query tree to illustrate the logical steps necessary to change the data source into the desired shape.
- Query optimizer to analyze all the ways to access the source tables and choose the steps that use the fastest and least resources. Query trees, repaired to record the steps that ultimately yield better execution plans.
- Database engine started to run the execution plan.
Basic steps for processing the SELECT command can be used for other commands such as INSERT, UPDATE, and the DELETE. UDPATE and DELETE commands that have a target on the set of rows are basically doing the same process with the SELECT command. After the lines obtained were alteration or deletion.
2 comments:
artikel yang bermanfaat sob, tapi sayang bahasa inggris ane jelek.hehehe....blog baru ya..keep blogging ya sob...
kalau masalah SQL masih belum benar2 mengerti sob masih harus banyak belajar, oy kalau masalah meta tag yg bisa di atur seperti halnya meta pada WP saya belum mengerti seperti apa meta tag di blog wp
Post a Comment