Skip to content

Commit 424aa0f

Browse files
Merge pull request #30 from krsriq/patch-1
Fix typos
2 parents b5a9695 + b1cb097 commit 424aa0f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
This is a fast `limit`/`offset` pagination macro for Laravel. It can be used in place of the standard `paginate` methods.
66

7-
This packages uses a SQL method similar to a "deferred join" to achieve this speedup. A deferred join is a technique that defers access to requested columns until _after_ the `offset` and `limit` have been applied.
7+
This package uses a SQL method similar to a "deferred join" to achieve this speedup. A deferred join is a technique that defers access to requested columns until _after_ the `offset` and `limit` have been applied.
88

99
In our case we don't actually do a join, but rather a `where in` with a subquery. Using this technique we create a subquery that can be optimized with specific indexes for maximum speed and then use those results to fetch the full rows.
1010

@@ -21,7 +21,7 @@ select * from contacts -- The full data that you want to show your
2121
> You might get an error trying to run the query above! Something like `This version of MySQL doesn't yet support 'LIMIT & IN/ALL/ANY/SOME subquery.`
2222
> In this package, we run them as [two _separate_ queries](https://github.com/hammerstonedev/fast-paginate/blob/154da286f8160a9e75e64e8025b0da682aa2ba23/src/BuilderMixin.php#L62-L79) to get around that!
2323
24-
The benefits can vary based on your dataset, but this method allows the database to examine as little data as possible satisfy the user's intent.
24+
The benefits can vary based on your dataset, but this method allows the database to examine as little data as possible to satisfy the user's intent.
2525

2626
It's unlikely that this method will ever perform worse than traditional `offset` / `limit`, although it is possible, so be
2727
sure to test on your data!
@@ -60,4 +60,4 @@ Some community results so far:
6060
* [7.5x faster](https://twitter.com/max_eckel/status/1483764319372333057)
6161
* [1.1 seconds --> 0.1 seconds](https://twitter.com/max_eckel/status/1483852300414337032)
6262
* [20 seconds --> 2 seconds](https://twitter.com/1ralphmorris/status/1484242437618941957)
63-
* [2 seconds --> .2 seconds](https://twitter.com/julioelpoeta/status/1549524738980077568)
63+
* [2 seconds --> .2 seconds](https://twitter.com/julioelpoeta/status/1549524738980077568)

0 commit comments

Comments
 (0)