Skip to content

Commit

Permalink
improve md
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeloffner committed Jun 6, 2024
1 parent 86d38f0 commit e42df8c
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 13 deletions.
10 changes: 5 additions & 5 deletions docs/recipes/lazy_queries.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
]
}
-->
## Lazy Queries ##
# Lazy Queries

This document explains about lazy queries with some simple examples as follows:

### Example 1: ###
## Example 1

**Regular query**: Regular query tags/functions load all data inside a two-dimensional structure to use.

Expand All @@ -39,7 +39,7 @@ loop query=qry {

2) We execute this in the browser and we get the expected result.

### Example 2: ###
## Example 2

**Lazy query**: Lazy queries keep a pointer to the database and only load the data on demand. If you loop through a query, the data is loaded on the spot. It does not create a two-dimensional struct to store all the data beforehand. When the query tag is done, it keeps a pointer to the database.

Expand All @@ -64,7 +64,7 @@ There is not really a difference between a regular query and a lazy query, just

With a lazy query, we do not have to wait until Lucee has loaded all the data into a two-dimensional structure, and it is also better for memory because you do not have to store all the older data in the memory until you are ready to use it. So there are some benefits.

### Example 3: ###
## Example 3

A comparison of lazy queries and regular queries follows:

Expand Down Expand Up @@ -93,7 +93,7 @@ This example compares lazy queries with regular queries. It has a loop that loop

Execute that example in the browser. The regular query takes 41 milliseconds and the lazy query takes 27 milliseconds. So we see the benefits of the lazy queries.

### Footnotes ###
## Footnotes

You can see the details in this video:
[Lazy Query](https://youtu.be/X8_TB1py8n0)
10 changes: 3 additions & 7 deletions docs/recipes/mail-send.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@
]
}
-->
## How to send a Mail
# How to send a Mail

The following example shows you how you can send a mail. Before you can use this functionality, you have to define a Mail server in the Lucee Administrator.

### Tags
## Tags

```coldfusion
<cfmail subject="Your Order" from="[email protected]" to="[email protected]">
Expand All @@ -32,7 +32,7 @@ The following example shows you how you can send a mail. Before you can use this
</cfmail>
```

### Script
## Script

```cfs
mail subject="Your Order" from="[email protected]" to="[email protected]" {
Expand All @@ -42,7 +42,3 @@ mail subject="Your Order" from="[email protected]" to="[email protected]" {
```

That is all you need to do to send a mail.

## Advanced

TODO
2 changes: 2 additions & 0 deletions docs/recipes/query-handling.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
]
}
-->
# Query Handling in Lucee

This document explains how SQL queries are supported in Lucee.

## Query tags
Expand Down
2 changes: 1 addition & 1 deletion docs/recipes/sax.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
]
}
-->
## Event driven XML reading (SAX)
# Read XML with a listener Model (SAX)

Lucee not only allows you to convert an XML file to an object tree (DOM) but also supports an event-driven model (SAX).

Expand Down

0 comments on commit e42df8c

Please sign in to comment.