JetThoughts

Let’s look at a few tricks in CSS able to create basic shapes like circles.


<div class="circle"></div>

Border-Radius

For this case need to use the border-radius property and set the value to 50%. Then combine the height and width properties with a matching value.

.circle {
width: 100px;
height: 100px;
border-radius: 50%;
background: lightgreen;
}

--

--

The main difference is that when using includes the eager loading is used. Eager loading allows you to optimize data retrieval by avoiding additional queries to the database.

Let’s see how it works with an example:

Joins:

We have joined tables, but we don’t get any data from the users table. Therefore, each time the user record is accessed, and there is an additional query to the database.

Includes:

--

--

JetThoughts

JetThoughts

Ruby on Rails | React | Vue | We make apps. Find out more at jtway.co