Merge pull request #3335 from annando/issue-3331
Issue 3331: Remove unneeded table "deliverq"
This commit is contained in:
		
				commit
				
					
						b8fd48dddc
					
				
			
		
					 7 changed files with 10 additions and 32 deletions
				
			
		| 
						 | 
				
			
			@ -6,12 +6,10 @@ If you are the admin of a Friendica node, you have access to the so called **Adm
 | 
			
		|||
 | 
			
		||||
On the front page of the admin panel you will see a summary of information about your node.
 | 
			
		||||
These information include the amount of messages currently being processed in the queues.
 | 
			
		||||
The first number is the number of messages being actively sent.
 | 
			
		||||
This number should decrease quickly.
 | 
			
		||||
The second is the messages which could for various reasons not being delivered.
 | 
			
		||||
The first number is the number of messages which could not been delivered for various reasons.
 | 
			
		||||
They will be resend later.
 | 
			
		||||
You can have a quick glance into that second queus in the "Inspect Queue" section of the admin panel.
 | 
			
		||||
If you have activated the background workers, there is a third number representing the count of jobs queued for the workers.
 | 
			
		||||
The second number represents the current number of jobs for the background workers.
 | 
			
		||||
These worker tasks are prioritised and are done accordingly.
 | 
			
		||||
 | 
			
		||||
Then you get an overview of the accounts on your node, which can be moderated in the "Users" section of the panel.
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -14,7 +14,6 @@ Database Tables
 | 
			
		|||
| [config](help/database/db_config)                    | main configuration storage                       |
 | 
			
		||||
| [contact](help/database/db_contact)                  | contact table                                    |
 | 
			
		||||
| [conv](help/database/db_conv)                        | private messages                                 |
 | 
			
		||||
| [deliverq](help/database/db_deliverq)                |                                                  |
 | 
			
		||||
| [event](help/database/db_event)                      | Events                                           |
 | 
			
		||||
| [fcontact](help/database/db_fcontact)                | friend suggestion stuff                          |
 | 
			
		||||
| [ffinder](help/database/db_ffinder)                  | friend suggestion stuff                          |
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -1,12 +0,0 @@
 | 
			
		|||
Table deliverq
 | 
			
		||||
==============
 | 
			
		||||
 | 
			
		||||
| Field   | Description      | Type             | Null | Key | Default | Extra          |
 | 
			
		||||
|---------|------------------|------------------|------|-----|---------|----------------|
 | 
			
		||||
| id      | sequential ID    | int(10) unsigned | NO   | PRI | NULL    | auto_increment |
 | 
			
		||||
| cmd     |                  | varchar(32)      | NO   |     |         |                |
 | 
			
		||||
| item    |                  | int(11)          | NO   |     | 0       |                |
 | 
			
		||||
| contact |                  | int(11)          | NO   |     | 0       |                |
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
Return to [database documentation](help/database)
 | 
			
		||||
| 
						 | 
				
			
			@ -5,17 +5,14 @@
 | 
			
		|||
Wenn du der Administrator einer Friendica Instanz bist, hast du Zugriff auf das so genannte **Admin Panel** in dem du die Friendica Instanz konfigurieren kannst,
 | 
			
		||||
 | 
			
		||||
Auf der Startseite des Admin Panels werden die Informationen zu der Instanz zusammengefasst.
 | 
			
		||||
Diese Informationen beinhalten die Anzahl der Nachrichten, die sich aktuell in den Warteschlangen befinden.
 | 
			
		||||
Hierbei ist die erste Zahl die Zahl der Nachrichten die gerade aktiv verteilt werden.
 | 
			
		||||
Diese Zahl sollte sich relativ schnell sinken.
 | 
			
		||||
Die zweite Zahl gibt die Anzahl von Nachrichten an, die nicht zugestellt werden konnten.
 | 
			
		||||
Die erste Zahl gibt die Anzahl von Nachrichten an, die nicht zugestellt werden konnten.
 | 
			
		||||
Die Zustellung wird zu einem späteren Zeitpunkt noch einmal versucht.
 | 
			
		||||
Unter dem Punkt "Warteschlange Inspizieren" kannst du einen schnellen Blick auf die zweite Warteschlange werfen.
 | 
			
		||||
Solltest du für die Hintergrundprozesse die Worker aktiviert haben, wird eine dritte Zahl angezeigt.
 | 
			
		||||
Diese repräsentiert die Anzahl der Aufgaben, die die Worker noch vor sich haben.
 | 
			
		||||
Die zweite Zahl steht für die Anzahl der Aufgaben, die die Worker noch vor sich haben. 
 | 
			
		||||
Die Worker arbeiten Hintergrundprozesse ab. 
 | 
			
		||||
Die Aufgaben der Worker sind priorisiert und werden anhand dieser Prioritäten abgearbeitet.
 | 
			
		||||
 | 
			
		||||
Des weiteren findest du eine Übersicht über die Accounts auf dem Friendica Knoten, die unter dem Punkt "Nutzer" moderiert werden können.
 | 
			
		||||
Desweiteren findest du eine Übersicht über die Accounts auf dem Friendica Knoten, die unter dem Punkt "Nutzer" moderiert werden können.
 | 
			
		||||
Sowie eine Liste der derzeit aktivierten Addons.
 | 
			
		||||
Diese Liste ist verlinkt, so dass du schnellen Zugriff auf die Informationsseiten der einzelnen Addons hast.
 | 
			
		||||
Abschließend findest du auf der Startseite des Admin Panels die installierte Version von Friendica.
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -59,9 +59,8 @@ function photo_albums($uid, $update = false) {
 | 
			
		|||
		} else {
 | 
			
		||||
			// This query doesn't do the count and is much faster
 | 
			
		||||
			$albums = qu("SELECT DISTINCT(`album`), '' AS `total`
 | 
			
		||||
				FROM `photo`
 | 
			
		||||
				WHERE `uid` = %d  AND `album` != '%s' AND `album` != '%s' $sql_extra
 | 
			
		||||
				GROUP BY `album` ORDER BY `created` DESC",
 | 
			
		||||
				FROM `photo` USE INDEX (`uid_album_scale_created`)
 | 
			
		||||
				WHERE `uid` = %d  AND `album` != '%s' AND `album` != '%s' $sql_extra",
 | 
			
		||||
				intval($uid),
 | 
			
		||||
				dbesc('Contact Photos'),
 | 
			
		||||
				dbesc(t('Contact Photos'))
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -474,9 +474,6 @@ function admin_page_summary(App $a) {
 | 
			
		|||
	$r = qu("SELECT COUNT(`id`) AS `count` FROM `register`");
 | 
			
		||||
	$pending = $r[0]['count'];
 | 
			
		||||
 | 
			
		||||
	$r = qu("SELECT COUNT(*) AS `total` FROM `deliverq` WHERE 1");
 | 
			
		||||
	$deliverq = (($r) ? $r[0]['total'] : 0);
 | 
			
		||||
 | 
			
		||||
	$r = qu("SELECT COUNT(*) AS `total` FROM `queue` WHERE 1");
 | 
			
		||||
	$queue = (($r) ? $r[0]['total'] : 0);
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -485,7 +482,7 @@ function admin_page_summary(App $a) {
 | 
			
		|||
 | 
			
		||||
	// We can do better, but this is a quick queue status
 | 
			
		||||
 | 
			
		||||
	$queues = array('label' => t('Message queues'), 'deliverq' => $deliverq, 'queue' => $queue, 'workerq' => $workerqueue);
 | 
			
		||||
	$queues = array('label' => t('Message queues'), 'queue' => $queue, 'workerq' => $workerqueue);
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
	$t = get_markup_template("admin_summary.tpl");
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -11,7 +11,7 @@
 | 
			
		|||
 | 
			
		||||
	<dl>
 | 
			
		||||
		<dt>{{$queues.label}}</dt>
 | 
			
		||||
		<dd>{{$queues.deliverq}} - <a href="{{$baseurl}}/admin/queue">{{$queues.queue}}</a> - {{$queues.workerq}}</dd>
 | 
			
		||||
		<dd><a href="{{$baseurl}}/admin/queue">{{$queues.queue}}</a> - {{$queues.workerq}}</dd>
 | 
			
		||||
	</dl>
 | 
			
		||||
	<dl>
 | 
			
		||||
		<dt>{{$pending.0}}</dt>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue