![]() |
Runs/Adds Queries
Hey there's just a little option that you're missing, Runs/Adds Queries, to the right column. It's good to know whether a hack requires to run or add a query, you know.
Supported DB Changes Installer included Uses Plugins Template changes Code changes Additional files Adds query Is in Beta stage |
That's what DB Changes is for ;)
Chris |
Why would you want to know if a hack has SQL queries in it?
|
I suppose some people don't like things that need extra queries. Seems to limit them to template mods only then, IMO, as I believe most mods require some form of query or other.
|
DB Changes does not necessarily mean that queries will be ran when executing the Plugin on a day-to-day basis; It could mean that simply a few queries will be ran when installing / un-installing products ;)
Chris |
Hence why I think it should be two seperate things, ie, uses queries when installing, and uses queries on a day-to-day basis.
|
This won't happen until we move to 3.5, by which point you will be able to define multiple combinations of what your modification does and no longer be confined to guesswork as far as what you select :)
Chris |
Cool. I'm looking forward to this hacks database, it's gonna be ace.
|
It even comes with a scrolling marquee saying [high]Chris M is the greatest[/high] :)
Chris |
now I've gone off the idea!!!!
|
Quote:
|
DB Changes = The Hacks modifies the database schema (eg. adding new fields, tables, indexes, etc.)
It has nothing to do with queries it uses to do it's work (gather data to display or whatever). |
Quote:
Lies it spreads...LIES! |
I've never understood this obsession with hacks and their SQL queries.
Merging 4 threads and moving the merged thread to a different forum using inline moderation, runs 102 queries - why would you care if a hack adds a query or 2 that take a fraction of a second to run? But... that's just me :) |
Quote:
Oh... right. :) |
Quote:
And since the days of 3.0 and especially 3.5 you don't need to execute as many queries thanks to improvements in functionality ;) Chris |
Oh I'm glad to hear this will be available while we're on 3.5. :)
|
Ι remember asking about queries when I didn't even know what a query was! I don't think that everyone that seems so concerned about them really knows how much they add and what a query actually means.
I think some people are obsessed with the number of queries for no reason. Anyway, DB changes is not complete cause there are hacks that don't affect the database but only run queries to read from it. So a query field is needed since we have those does-it-run-queries maniacs :p :p |
It's not necessarilly the number of queries, but the quality of the queries. One badly written or implemented query can be worse then 100 properly implemented queries.
|
Quote:
|
Quote:
|
Quote:
|
Quote:
|
Quote:
Can you please take a look at my referrer statistics hack and tell me what do you think about the queries? :nervous: Please? :nervous: |
Quote:
Code:
ALTER TABLE `user` ADD INDEX ( `referrerid` ) Read this article for more information: http://www.databasejournal.com/featu...0897_1382791_2 Even though your hack only has two queries, it completes two table scans. Table Scans are bad because it copies the entire table into memory and locks it until completed. This means no one's records can be updated or created while it is locked. On a small forum this may take milliseconds as MySQL looks at every record to see if it matches. On large forums it can take several seconds. |
Most poeple have little idea how sql works, and how useful indexes are, that is why they are obsessed with hacks running "queries". A few simple reads on a well indexed table can take less than 100th of a second to run. Lots of people add fields to tables, but never think about indexes.
Back to the topic, A tick box for Runs/Adds queries is IMO pointless, anything except the most simple of hacks will almost certainly run at least one query. I would not waste my time filling it in. |
Would there be another way of defining sever load for a mod? It would be good to know this before installing a hack. Maybe the number of queries or maybe there is another approach?
Myself I like a lot of hacks on vb.org, but installing to many may cause problems I suspect. I would appreciate your view in this. |
All times are GMT. The time now is 04:01 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|