SWiK : Schedulers
The previous two parts have looked at some solutions offered by triggers. Let’s look now at some wishful triggers solutions, which are currently unavailable because of triggers limitations.
Triggers Use Case Compilation, Part I
Triggers Use Case Compilation, Part II
Limitations and wishful features
Triggers are slow
The overhead of adding triggers is usually an even breaker. But I would like to believe speed will improve in time!
Triggers cannot act on the same table which activated them.
A thing I would like to do is have a rotating table. A log table is a perfect example: I only want to store logs up to 7 days back, or up to 1M rows. ON INSERT, (or once every 1000 inserts or so), I wish to remove oldest rows. This is not possible today since I can’t DELETE rows from the same table which caused the ON INSERT trigger to run. It can’t be hacked by calling on another table, then doing a circular trigger trick. MySQL will raise an error on run time, complaining about a loop.
Triggers cannot act on system tables.
Now why would I want to do that? Well, one of the first things I look at when reviewing a database is the users grants. I always find a list of users which is just too permissive, with far too many users than required. I once came upon a database with 273 users, where only 5 of them were actually in use. “When were these added?”, I asked - but nobody knew.
I would love to have an ON INSERT and an ON UPDATE trigger on the mysql.user table, which lists down the time of user creation and the invoking user (who would usually be ‘root’) and host, so it’s easier to track down who did what.
You cannot execute prepared statements from within a trigger.
Not much to add here. The possibilities are too many.
You can’t spawn an ANALYZE TABLE from a trigger
What I want to do is to run an ANALYZE TABLE once every 10K inserts or deletes, so the table takes care of itself. I’ve tried hacking this with prepared statements (you can’t use them); with cursors (you can only run a cursor on SELECT queries) or otherwise SQL hacks (none worked). If anyone finds a hack around it - please let me know!
You can’t have more than one trigger on the same event per table
This is more of a design issue. If I want to have two things BEFORE INSERT on City, I need to code both in the same trigger. This means adding functionality involves editing existing, tested, working code. It would be much nicer if two such triggers could play along.
A dirty workaround to problematic issues
There is a dirty workaround to some issues.
Take, for example, the rotating tables problem. Instead of the trigger executing the following query:
DELETE FROM logs WHERE time < DATE_ADD(NOW(), INTERVAL -7 DAY)
(as we’ve already noted was impossible), the triggers can write down the query as TEXT into some queries_to_run table. A cronjob can periodically check this table and execute whatever is in it, removing executed rows.
MySQL 5.1’s event scheduler can also be used for such statements which are invokable (like said DELETE).
Voir le site SWiK : Schedulers
- BPEL script - Wikipedia, the free encyclopedia
-
27 mai 2011
- Aipo6 - GoogleCode
-
10 mai 2011
- Open Source Job Schedulers in Java
-
7 mai 2011
- Quartz Scheduler - Overview
-
3 mai 2011
- Job Scheduler Overview
-
1er mai 2011
- oxbowlakes/foil - GitHub
-
27 avril 2011
- oxbowlakes/foil - GitHub
- Foil is a scheduling DSL for Scala which is agnostic to the underlying datetime library implementation. It has built-in hooks for the common libraries:
27 avril 2011
- Quartz Scheduler - Home
- Quartz is a full-featured, open source job scheduling service that can be integrated with, or used along side virtually any Java EE or Java SE application - from the smallest stand-alone application to the largest e-commerce system. Quartz can be used to create simple or complex schedules for (...)
25 avril 2011
- Quartz Scheduler - Home
-
21 avril 2011
- TaskForest - A Simple, Expressive, Open-Source, Text-File Based Job Scheduler
-
20 avril 2011
- Quartz Scheduler - Home
-
12 avril 2011
- Usando quartz com o Hibernate
-
10 avril 2011
- Planificar tareas en JBoss
-
25 mars 2011
- Seam: Quartz Scheduler and Cron Interval
-
25 mars 2011
- Seam Framework - Quartz Question -- @IntervalCron method ...
-
25 mars 2011
- Scala actors thread pool pitfall | Open Source Solutions for Software Development
-
15 mars 2011
- Flux - Job Scheduler. Automated Workflow Engine. Managed File Transfer. ETL. Data Warehousing. Full Java API and Browser UI.
-
7 mars 2011
- Job Scheduler Overview
-
5 mars 2011
- Scala actors thread pool pitfall | Open Source Solutions for Software Development
-
2 mars 2011
- Task Scheduler Managed Wrapper
-
28 février 2011
- Morning Coffee :: Add-ons for Firefox
-
23 février 2011
- Page Scheduler :: Add-ons for Firefox
-
23 février 2011
- 3 Best FireFox Addons That Will Help to Organize and Schedule Your Daily Browsing
-
23 février 2011
- Quartz.NET - Enterprise Job Scheduler for .NET Platform
-
11 février 2011
- gridengine.org
-
10 février 2011
- darrellsilver/norc - GitHub
-
8 février 2011
- Creating a Dojo Calendar | eKrantz.com
-
31 janvier 2011
- Send Later, Follow Up Reminders for Gmail | Download Boomerang
- A "Boomerang" button will appear when you are reading
22 janvier 2011
- How To Automatically Shut Down Your Windows 7 Computer — The Spinning Donut
-
10 janvier 2011
- Quartz.NET - Enterprise Job Scheduler for .NET Platform
-
2 janvier 2011
- Clustering of Quartz for JBoss ESB - JBoss Community
-
21 décembre 2010
- Flux - Job Scheduler. Automated Workflow Engine. Managed File Transfer. Everything through the Browser. Full Java API.
-
20 décembre 2010
- Spring + Quartz scheduler example
-
14 décembre 2010
- soa scheduler
-
8 décembre 2010
- Quartz.NET - Features
-
13 novembre 2010
- zUnkThoUghTs: Quick HOWTO : Quartz with JBoss
-
4 novembre 2010
- Quartz.NET - Features
-
1er novembre 2010
- GANYMEDE: GASH2
-
28 octobre 2010
- Quartz Scheduler - Home
-
26 octobre 2010
- Scala Programming Language - Actor question: My philosophers are starving
- ms
19 octobre 2010
- LinSched, a Userspace Linux Scheduler Simulator
-
14 octobre 2010
- Quartz.NET - Enterprise Job Scheduler for .NET Platform
-
12 octobre 2010
- Open Source Job Scheduler - Wikipedia, the free encyclopedia
-
4 octobre 2010
- Open Source Job Schedulers in Java
-
24 septembre 2010
- Chapter 22. Scheduling jobs using Quartz or Timer
-
24 septembre 2010
- Quartz Scheduler - Home
-
8 septembre 2010
- MooGenda: a complete javascript json calendar based on MooTools (drag event, month / day / week views, morphing list and other services)
-
5 septembre 2010
- MooGenda: a complete javascript json calendar based on MooTools (drag event, month / day / week views, morphing list and other services)
-
5 septembre 2010
- dojocal UI Tester
-
5 septembre 2010
- Quartz Scheduler - Home
-
2 septembre 2010
Dossier
De plus en plus d’entreprises utilisent un ordonnanceur pour exploiter leur SI, il y a donc des demandes régulières pour des profils d’analyste d’exploitation, formateur, chef de projet,architecte...
Espace Emploi
Cette rubrique permet de faire coïncider offres et demandes d’emploi dans le domaine de l’ordonnancement de tâches informatiques.
A voir sur le net
- Ordonnancement.net
Ordonnancement.net est un forum regroupant une communauté d’acteurs de l’ordonnancement de compétences différentes mais tous réunis par l’utilisation par l’utilisation d’un ordonnanceur.
Cette rubrique reprend les offres déposés sur le site, elles concernent donc exclusivement les métiers de l’ordonnancement.
- Keljob.com
Moteur de recherche d’emploi, job et stage du jeune diplome au cadre experimente. Criteres : region, type de contrat (CDD, CDI, Interim). Conseils pour les professionnels du recrutement (ASP,CV).
- Michael Page
Michael Page, cabinet de conseil en recrutement
- Monster.fr
Offres d’emploi monster.
- DirectEmploi.com
Offres d’emploi Informatique-Telecoms, depot de CV, tests de recrutement, plus de 14 000 annonces
- Apec.fr
30 offres de Cadre - Systèmes, réseaux, data
- ITProfil.com
ITProfil.com - Toutes les dernières offres de missions, offres d’emplois et offres de projets.
- Hays.fr
Jobs from Hays...
- Reseau-Emploi.com
Annuaire de 1100 entreprises et 3000 Offres d’emploi en informatique et électronique.
- Webcible-IT.com (Production)
Listing des offres Exploitation / Production / Maintenance
- Webcible-IT.com (Architecture)
Listing des offres
- Webcible-IT.com (Projets)
Listing des offres Gestion de Projets
- Webcible-IT.com (Ingénierie)
Listing des offres
- PC-infopratique.com
Les dernières offre d’emploi en informatique
- CarriereOnline
Le Blog des fonctions informatiques vous propose : Offres d'emploi, offres de stage et conseils en gestion de carrière dans les Télécommunications, Systèmes réseaux, Support informatique, Multimédia, Internet / NTIC, Ingénieur, Informatique industrielle, Informatique de gestion, Direction informatique, Conseil informatique, Autres fonctions informatique, Audit informatique, Architecte (IT)
- Cadremploi.fr
Ce service est fourni par CADREMPLOI.fr, il est protégé par le droit d’auteur et appartient à CADREMPLOI.fr.
- JobFreelance.org
Emploi Informatique - Offres de mission pour les freelances informatiques
Portail gratuit entièrement dédié aux missions freelance informatique, emploi informatique, recrutement informatique. Espace freelance et espace recruteur sont à la disposition des freelances informatiques recherchant des missions et des entreprises recherchant des compétences. Info pratique pour les indépendants informatiques
- OptionCarriere.com
Offres d’emploi sector : "informatique telecom" - France - Optioncarriere
- Emploirama.com
Dernières offres d’emploi dans l informatique parues sur emploirama.com
- CmonJob.fr
Votre recherche : Emploi Informatique / telecom , voici nos dernieres offres d’emploi sur CmonJob.fr. Emploi Informatique / telecom . Trouvez votre job !
- Jobtech.fr
Jobtech.fr - Le site emploi 100% Technique et Ingénierie. Offres d’emploi de la fonction "Hi-Tech / Informatique / Telecom"
- Orange-business.com
- Elancelot.com
Latest Job News
- Eci-conseils.com
Emploi par Eci-Conseils.com
- fr.emplois.offres
Google Group : Offres d'emplois ou de stages. (Moderated)
- Annuaire RH
Offres d’emploi quotidiennes http://www.annuaire-rh.org
- Freelance-info
- e-tangerine
votre partenaire sourcing
