Comments (4)
Wouldn't it better to slice the data coming out of Mongo instead of letting the Paginator do it?
from framework.
There's the method Illuminate\Database\Query\Builder::buildRawPaginator
which does this. Perhaps that one can be moved to the Paginator class.
from framework.
My initial reason behind not paginating straight ouf of Mongo was although we would only display the top X results, we need the the other results for graphing the data. So we display the top 50 results based on a column value, but we need all results in order to graph over time (since the top 50 can be from any time period).
To reduce the queries (granted it's negligible between 1 and 2) and also reduce the amount of reusable math in my controllers, it would be helpful (but obviously not necessary) to have those methods available. I don't really have a problem keeping it as it is, but just a thought I had while working with it.
from framework.
I would suggest just slicing it and passing it into the paginator.
from framework.
Related Issues (20)
- ### Laravel Version HOT 1
- The method throwUnless() does not exists in Http response class HOT 2
- Named parameter $api overwrites previous argument HOT 3
- SortedMiddleware Error Control Operator Usage HOT 1
- [11.x] Standalone usage of `illuminate/collections` is broken HOT 1
- Different variable name on the route than what was defined. HOT 1
- unable to add 'Reply-To' header in Mailables HOT 2
- ValidationRuleParser::filterConditionalRules($rules, $this->data) rewrites via reference $this->data HOT 2
- Better SQL server documentation HOT 1
- Better SQL server documentation HOT 1
- Sqs Job: VisibilityTimeout value is zero and type is string instead integer HOT 1
- Migrate:fresh doesn't ask to create database if it doesn't exist HOT 1
- Using orWhere cancels relationship scope HOT 2
- Php Attribute ObservedBy doesn't take in account observables added in Traits HOT 9
- cache:prune-stale-tags Not Functioning on Redis Cluster HOT 4
- when installing jetstream found illuminate/console[v10.17.0, ..., 10.x-dev] but these were not loaded, likely because it conflicts with another require HOT 1
- The "--without-migration-prompt" option does not exist. HOT 5
- Soft-deletion of Model does not trigger `deleted` event in Observer HOT 2
- Target [Laravel\\Fortify\\Contracts\\CreatesNewUsers] is not instantiable. HOT 1
- forceDeleting and restoring events not available for observers HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from framework.