| Commit message (Collapse) | Author | Age |
| |
|
|
|
|
|
| |
Includes the same fix from the previous commit which stops caching
entities until the inserts are complete.
Updates storeLogLine to take an insert command with the hostnameId
already bound.
|
| |
|
|
|
|
|
|
| |
Now includes the hostnameId, timestamp and optionally error message.
Updates idx_entities_retryinsert to account for details not being NULL.
Also fixes the issue where the entities inserted and rollback would
still be recorded in the entity cache if the access log insert failed.
This would have lead to PK violations later on.
|
| |
|
|
|
| |
Should be unique for value and type, they're not just strings, they can
be different things with the same value... Albeit rarely.
|
| |
|
|
|
| |
This prevents other instances acting on the same rows in parallel,
potentially duplicating the rows and effort.
|
| |
|
|
|
|
|
| |
The need to purge rows in request_time order is not necessary (all rows
will be deleted at some point in the process anyway) and is otherwise
extremely expensive. Removing the order by clause is a roughly 300x
speed up.
|
| |
|
|
|
| |
Standard sized batch in a transaction, ordered by entity id.
Includes early exit if terminated.
|
| |
|
|
|
|
| |
Entities are reparsed and reinserted, removed on success.
Failure to parse updates the entity type to UnparsableLine.
Failure to insert again updates the detail with the reason.
|
| |
|
|
|
|
|
| |
Improves handling of entity inserts where the entity already exists and
already has detail; does not call the onInsert handler. This avoids
repeatedly fetching UA detail every time the UA is first seen by a
process.
|
| |
|
|
| |
Purge is now fully request_time based and not hacked around id ranges.
|
| |
|
|
|
| |
Entity value is MD5 hashed same as DB unique key, but the id itself is
now taken from the DB primary key which is sequence generated.
|
| | |
|
| |
|
|
| |
No changes.
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|