Query 100000 items of data with SQL or JSON+LINQ?

I have a dataset with a size of about 100000. The dataset is rarely added or updated, mainly because of frequent query operations, efficient query, and regardless of memory footprint and preload time. Which solution is better to use SQL or JSON+LINQ?

Mar.21,2022

which is more efficient, native SQL or packaged SQL?
frequent queries and few updates, use cache


Big Brother dei,redis memcache to learn about it.


100000 is not stressful for mysql. If you query frequently, you can consider caching. Redis is a good choice, or you can use ES, that is, elasticsearch, to store some frequently queried data. Responses of tens of millions of levels are also at the millisecond level


cache . (regardless of memory footprint, Then load it all into head )


if this requirement is put forward, considering the data size, the first consideration is memory storage.
using Mongodb can automatically cache data into memory to a certain extent.
if you pursue extreme efficiency, you can read it into memory and build your own search tree.
just do mysql casually. 10 weeks is too little and it doesn't make much difference. The sentence is reasonable when the index is built, it takes more than 0.0 seconds

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b37c3f-34488.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b37c3f-34488.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?