From system development using JavaScript and NodeJS Found that using the command console.log() is a lot Often, the result is not as desired. Therefore introducing a little more Console Console usage Let's get started. Basic Console API In JavaScript Most will find in the debug of the work system as follows. console.log () encountered the most. console.warn () console.error () Let's look at some other useful methods. 1. Console.table() Display data of objects and arrays in a tabular format. Which is easy to read and easy to understand. 2. Console.assert() Check the submitted value to be true or false. If the value entered is false and will write a log for us to see But if true it will not display the log The false value consists of 0, false, blank, etc. 3. Console.count() For counting values or counting work times Very useful when we debug a system. Especially those with a strange life cycle will make us understand work more easily Which will be used to
In this article, I will talk about the speed of the JOIN table in various forms of MySQL , which will be useful. In choosing the right command style in order to get the fastest results The test is nothing much. I tested the functionality on phpMyAdmin and then saw the results of the query speed from phpMyAdmin . If applied to other tests, try it. Testing, I chose the test command in the JOIN group to select all the data to be displayed. It is a query that gives the same result in 3 types without sorting. SELECT I.*,T.* FROM eduparty_index AS I INNER JOIN eduparty_template AS T ORDER BY I.username 3,060 total, keywords lasted 0.1406 seconds SELECT I.*,T.* FROM eduparty_index AS I CROSS JOIN eduparty_template AS T ORDER BY I.username 3,060 total, keywords lasted 0.1145 seconds SELECT I.*,T.* FROM eduparty_index AS I,eduparty_template AS T ORDER BY I.username 3,060 total, keywords lasted 0.1043 seconds The total time obtained is the average time for each order