We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Loading script is slow when inserting line by line. Old static log files can be loaded faster with COPY command.
COPY
SELECT max(file_id)+1 FROM log_files;
access-file.log
access-file.sql
INSERT INTO log_files(file_id, file_name, first_line_checksum, last_read_line_checksum, lines_read, lines_valid, tail) VALUES(ID,'access-file.log',FIRST_CHECK,LAST_CHECK,LREAD,LVALID,FALSE); COPY log_file_entries(file_id, service_id, line_number, line_checksum, remote_addr, remote_user, time_local, method, request, protocol, status, body_bytes_sent, http_referer, http_user_agent, unit) FROM 'access-file.dump' WITH DELIMITER AS '\t';
access-file.dump
TAB SEPARATED VALUES
file_id
The text was updated successfully, but these errors were encountered:
script for generating raw sql data (#34)
e932722
fix copy command and timestamp (#34)
9363c64
escape \ character (#34)
506ad7d
fix notice, split dump files by days, disable triggers (#34)
4e86a8e
add aggregations to log2sql conversion #34
b3891b4
fix sql script generator #34
e308a59
No branches or pull requests
Loading script is slow when inserting line by line. Old static log files can be loaded faster with
COPY
command.Script should settings
SELECT max(file_id)+1 FROM log_files;
convert
access-file.log
to:access-file.sql
access-file.dump
to handle
file_id
, check if it does not exist during import.The text was updated successfully, but these errors were encountered: