Reducing Queries to one?

R

Robert9

Guest
Member
Can someone please tell me what and how I can do this to minimize the queries:

I am building a class that outputs a page. I fetch the titles of ten threads and then the individual posts from those threads.

These ten threads and posts are almost never changed.
My query looks something like this:
a) 1 query: Fetch threads with thread_id in [1...10]
b) 10 queries: Fetch posts from the individual threads
(Yes, could do this in one go, but I need an example to save a lot of queries)

So...

Read more
Reducing Queries to one?

free plugins
minecraft paid for free
mcmarket
mc-market
free minecraft paid plugins
free minecraft plugins
spigotmc
SpigotMC
aac free
ewg free
Minecraft Premium Plugins
ewg free download
litebans free
epicworldgenerator free
free schematics
leaked schematics minecraft
schematics
schematics leaked
schematics free
minecraft schematics free
paid minecraft schematics free
paid minecraft schematics for free
free cracked plugins
free cracked minecraft plugins
plugins
featherboard download
featherboard plugin download
antiaura download
xenforo leaked
xenforo for free
xenforo addons
 
BlackSpigot General Chat
Rules Help Users
    B @ BeingImpossible: Promote your discord server Fast & Free ⚡ Check out: https://dscspot.lol/ get free members
    Top