aboutsummaryrefslogtreecommitdiffstats
path: root/include/queue.php
Commit message (Collapse)AuthorAgeFilesLines
* PostgreSQL support initial commitHabeas Codice2014-11-131-6/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There were 11 main types of changes: - UPDATE's and DELETE's sometimes had LIMIT 1 at the end of them. This is not only non-compliant but it would certainly not do what whoever wrote it thought it would. It is likely this mistake was just copied from Friendica. All of these instances, the LIMIT 1 was simply removed. - Bitwise operations (and even some non-zero int checks) erroneously rely on MySQL implicit integer-boolean conversion in the WHERE clauses. This is non-compliant (and bad programming practice to boot). Proper explicit boolean conversions were added. New queries should use proper conventions. - MySQL has a different operator for bitwise XOR than postgres. Rather than add yet another dba_ func, I converted them to "& ~" ("AND NOT") when turning off, and "|" ("OR") when turning on. There were no true toggles (XOR). New queries should refrain from using XOR when not necessary. - There are several fields which the schema has marked as NOT NULL, but the inserts don't specify them. The reason this works is because mysql totally ignores the constraint and adds an empty text default automatically. Again, non-compliant, obviously. In these cases a default of empty text was added. - Several statements rely on a non-standard MySQL feature (http://dev.mysql.com/doc/refman/5.5/en/group-by-handling.html). These queries can all be rewritten to be standards compliant. Interestingly enough, the newly rewritten standards compliant queries run a zillion times faster, even on MySQL. - A couple of function/operator name translations were needed (RAND/RANDOM, GROUP_CONCAT/STRING_AGG, UTC_NOW, REGEXP/~, ^/#) -- assist functions added in the dba_ - INTERVALs: postgres requires quotes around the value, mysql requires that there are not quotes around the value -- assist functions added in the dba_ - NULL_DATE's -- Postgres does not allow the invalid date '0000-00-00 00:00:00' (there is no such thing as year 0 or month 0 or day 0). We use '0001-01-01 00:00:00' for postgres. Conversions are handled in Zot/item packets automagically by quoting all dates with dbescdate(). - char(##) specifications in the schema creates fields with blank spaces that aren't trimmed in the code. MySQL apparently treats char(##) as varchar(##), again, non-compliant. Since postgres works better with text fields anyway, this ball of bugs was simply side-stepped by using 'text' datatype for all text fields in the postgres schema. varchar was used in a couple of places where it actually seemed appropriate (size constraint), but without rigorously vetting that all of the PHP code actually validates data, new bugs might come out from under the rug. - postgres doesn't store nul bytes and a few other non-printables in text fields, even when quoted. bytea fields were used when storing binary data (photo.data, attach.data). A new dbescbin() function was added to handle this transparently. - postgres does not support LIMIT #,# syntax. All databases support LIMIT # OFFSET # syntax. Statements were updated to be standard. These changes require corresponding changes in the coding standards. Please review those before adding any code going forward. Still on my TODO list: - remove quotes from non-reserved identifiers and make reserved identifiers use dba func for quoting - Rewrite search queries for better results (both MySQL and Postgres)
* various diaspora issuesfriendica2014-08-291-1/+2
|
* more queue tweaksfriendica2014-08-281-1/+1
|
* the queue driver is universal now - we don't need to filter it.friendica2014-08-281-1/+1
|
* lots of little Diaspora issuesfriendica2014-08-281-0/+17
|
* this should improve queue performance dramatically.friendica2014-03-241-2/+6
|
* unknown columnfriendica2013-03-111-2/+2
|
* start formatting for Doxygenfriendica2013-02-251-1/+1
|
* make preview work fix some other nitsfriendica2013-01-061-0/+1
|
* more delivery diagnosticsfriendica2012-12-311-1/+1
|
* requeue failed deliveriesfriendica2012-12-301-113/+17
|
* cleanup more obsolete stufffriendica2012-12-181-1/+7
|
* more cleanupMike Macgirvin2012-10-231-25/+5
|
* Removing connectors we won't be needing - this is probably going to break ↵friendica2012-07-181-23/+0
| | | | some shit.
* upstream fixes and a lot of taxonomy stufffriendica2012-07-101-1/+1
|
* Merge branch 'master' of https://github.com/friendica/friendicaAlexander Kampmann2012-04-051-0/+0
| | | | | | Conflicts: include/config.php update.php
* queue optimisation - back off delivery attempts to once per hour after the ↵friendica2012-03-171-3/+8
| | | | first 12 hours.
* add remove_user hook (it looks like dreamhost changed all my file ↵friendica2012-01-181-0/+0
| | | | permissions, this will make a nasty commit)
* starting the big delivery shakeupFriendika2011-09-221-1/+2
|
* allow zero delivery interval on dedicated serversFriendika2011-08-291-4/+3
|
* remove item from queueFriendika2011-08-281-11/+10
|
* implement delivery queue in case notifier gets killedFriendika2011-08-281-0/+14
|
* don't allow fullscreen for youtube iframe - this makes it hard to visit the ↵Friendika2011-08-261-5/+23
| | | | network page when they throw an error
* missing salmon key? report it.Friendika2011-08-241-2/+3
|
* D* queueFriendika2011-08-241-0/+13
|
* load db configs (config,system) for all "executables"Friendika2011-06-301-0/+3
|
* more work on facebook re-queueFriendika2011-06-051-1/+5
|
* load hooks inside queueFriendika2011-06-051-0/+2
|
* facebook queueing on failure, sync update.php with boot.php update version ↵Friendika2011-06-031-16/+6
| | | | to avoid race condition
* add queue_deliver plugin hookFriendika2011-06-021-2/+14
|
* modded scripts to be runned in cli so they can be included and executed in ↵Fabio Comuni2011-01-281-11/+20
| | | | main program
* Mods to script runned via CLI to permits to run also includedfabrixxm2011-01-241-3/+3
|
* don't attempt to deliver queued items to sites which have already timed outFriendika2010-11-251-3/+13
|
* log queue startupFriendika2010-11-251-0/+1
|
* wrong function nameFriendika2010-11-251-1/+1
|
* premature removal of queue itemFriendika2010-11-231-1/+1
|
* schedule the queue re-delivery processFriendika2010-11-221-1/+1
|
* queue/redeliver moduleFriendika2010-11-221-0/+113