Login
Username: Password:
Remember me

[Sign Up] / [Recover Password]

Theme / Language

Popular
New Torrents
new name
Size: 18.40 MB
Most active
new name
S: 74 L: 3
New Posters
Template help
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / M-BiTsy / M-BiTsy Support

2020-11-22 13:23:55
The goal for each page is query one in & one out at most, keeping everything working and all the functionality makes it a little harder but I'll use your tips moving forward
2020-11-22 16:47:36
He is correct but it’s a chore to restructure it all to rely on JOINED queries, and you want to really optimize your caches and other settings in my.cnf to properly read/write efficiently in this case, table overhead is in mind. This is now assuming you want to reduce your code now to single-query calls.
2020-11-22 17:13:02
It's a little easier for me because I use models and my pages/methods are tiny even the submit post code are moved like login/loginsubmit  but I could defo use the querys better so I can remove all the while

If I get the query right in the model I would write out a array eg (on phone at min)

$stmt = Sql query join etc user invite->fetch;
$stmt = [
'username' => $stmt[username],
'Invite' => $stmt[invitr]
          ]

I'll look at for this and post a few to get me started
2020-11-22 17:28:59
Yah coffee and iPhone don’t work for me too lol I agree I want to learn this too and reduce looping, I know I can get the array keys without looping and break after x amount of results, but again I’ve travelled too far lol
2020-11-22 18:08:26
If we put all these new querys in a class (a bit like a model) and make them static should be able to use on any version for testing when I get chance tomorrow llI open a new post just want to find some good examples first
Users online

No users online

Search



Statistics

    Torrents

  • Tracking: 3
  • Todays torrents: 0
  • Seeders: 0
  • Leechers: 0
  • Peers: 0
  • Downloaded: 89.96 GB
  • Uploaded: 9.86 GB

  • Members

  • We have: 838
  • New today: 0
  • Guest today: 9

  • Online

  • Total online: 1
  • Members: 0
  • Guests online: 1
  • Comments: 3
  • Messages: 1,728