Comments (2)
Well, optimizing fetching data randomly from the database is a complex case.
Those solutions are based on different construction, different data type, or different database engine. There is no absolute answer.
I just recommend you can use rand()
for simple and small data.
But for complex and larger data, it's good to write your query alone with query()
based on your actual situation to get the best performance.
from medoo.
Ok, thank you for your enlightenment.
And yes, I used query() yesterday to implement the solution prescribed by my hoster.
from medoo.
Related Issues (20)
- In update copy field HOT 1
- buildRaw() with duplicated column name
- PHP 8.2 support HOT 2
- Medoo internal regex alters my insertion values HOT 1
- select max item why return string not integer?
- Bad string interpolation syntax in Medoo.php HOT 2
- Uncaught PDOException: Too many connections HOT 2
- create function option is wrong Syntax. HOT 1
- Error when using Raw with IN HOT 1
- debug() don't work in the latest version. HOT 2
- NULL to EMPTY_STRING HOT 3
- sum() sometimes returns string instead of number HOT 1
- invalid value for parameter "client_encoding": "utf8mb4" HOT 1
- 'String' in Data Type Declaration does not work HOT 4
- Any one know how to use this library with mysql's AES_ENCRYPT and AES_DECRYPT HOT 2
- Update from 0.9.6 version :) HOT 1
- Multi-Insertion:how to fetch insert errors?
- New type error after fix #1085 HOT 5
- Can't connect to db 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 medoo.