Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8392775
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T19:36:26+00:00 2026-06-09T19:36:26+00:00

I am running a cron job every 15 mins thats pulls in feeds and

  • 0

I am running a cron job every 15 mins thats pulls in feeds and then stores them to a database, from a fresh new database this works fine and i can see my database been populated every 15 minutes.

But after say two weeks the database seems to hit its maximum limit and will not store anymore data well i certainly cant pull it down through my code ignitor app, what is the best way to deal with high amounts of data?

I am working with a dedicated server and have limited knowledge of high data demands on mysql before. here are the settings in my /etc/my.cnf

[client]
port            = 3306
socket          = /var/lib/mysql/mysql.sock


[mysqld_safe]
log-error=/var/log/mysqld.log
pid-file=/var/run/mysqld/mysqld.pid

innodb_buffer_pool_size=2M
innodb_additional_mem_pool_size=500K
innodb_log_buffer_size=500K
innodb_thread_concurrency=2

[mysqld]
local-infile=0
datadir=/var/lib/mysql
user=mysql
symbolic-links=0

max_connections = 100
wait_timeout = 60
query-cache-type = 1
query-cache-size = 8M
query_cache_limit = 2M
thread_cache_size = 8
tmp_table_size = 16M
max_heap_table_size = 16M
join_buffer_size = 1M
table_open_cache = 64

port            = 3306
socket          = /var/lib/mysql/mysql.sock
skip-external-locking
key_buffer_size = 16M
max_allowed_packet = 1M
sort_buffer_size = 512K
net_buffer_length = 8K
read_buffer_size = 256K
read_rnd_buffer_size = 512K
myisam_sort_buffer_size = 8M






innodb_buffer_pool_size = 16M
innodb_additional_mem_pool_size = 2M
innodb_log_buffer_size = 8M

[mysqldump]
quick
max_allowed_packet = 16M

[mysql]
no-auto-rehash

[myisamchk]
key_buffer_size = 20M
sort_buffer_size = 20M
read_buffer = 2M
write_buffer = 2M

[mysqlhotcopy]
interactive-timeout

What is the max sensible settings that i can set to make my sql last for a long time, and yes i do not know alot about this just really need to keep this running as i cant clear the data and then start populating the database again, i need it to keep storing.

Thanks is advance 😉

UPDATED

WOW i have no idea what most off this means doesn’t look good tho

120803 08:45:19 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
120803  8:45:19 [Note] Plugin 'FEDERATED' is disabled.
120803  8:45:19  InnoDB: Initializing buffer pool, size = 8.0M
120803  8:45:19  InnoDB: Completed initialization of buffer pool
InnoDB: The first specified data file ./ibdata1 did not exist:
InnoDB: a new database to be created!
120803  8:45:19  InnoDB: Setting file ./ibdata1 size to 10 MB
InnoDB: Database physically writes the file full: wait...
120803  8:45:19  InnoDB: Log file ./ib_logfile0 did not exist: new to be created
InnoDB: Setting log file ./ib_logfile0 size to 5 MB
InnoDB: Database physically writes the file full: wait...
120803  8:45:19  InnoDB: Log file ./ib_logfile1 did not exist: new to be created
InnoDB: Setting log file ./ib_logfile1 size to 5 MB
InnoDB: Database physically writes the file full: wait...
InnoDB: Doublewrite buffer not found: creating new
InnoDB: Doublewrite buffer created
InnoDB: Creating foreign key constraint system tables
InnoDB: Foreign key constraint system tables created
120803  8:45:19  InnoDB: Started; log sequence number 0 0
120803  8:45:19 [Note] Event Scheduler: Loaded 0 events
120803  8:45:19 [Note] /usr/libexec/mysqld: ready for connections.
Version: '5.1.54'  socket: '/var/lib/mysql/mysql.sock'  port: 3306  MySQL Community Server (GPL) by Remi
120803  8:45:21 [Note] /usr/libexec/mysqld: Normal shutdown

120803  8:45:21 [Note] Event Scheduler: Purging the queue. 0 events
120803  8:45:21  InnoDB: Starting shutdown...
120803  8:45:25  InnoDB: Shutdown completed; log sequence number 0 721938
120803  8:45:25 [Note] /usr/libexec/mysqld: Shutdown complete

120803 08:45:25 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended
120803 08:45:25 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
120803  8:45:25 [Note] Plugin 'FEDERATED' is disabled.
120803  8:45:25 [Warning] option 'innodb-additional-mem-pool-size': signed value 512000 adjusted to 524288
120803  8:45:25  InnoDB: Initializing buffer pool, size = 2.0M
120803  8:45:25  InnoDB: Completed initialization of buffer pool
120803  8:45:25  InnoDB: Started; log sequence number 0 721938
120803  8:45:25 [Note] Event Scheduler: Loaded 0 events
120803  8:45:25 [Note] /usr/libexec/mysqld: ready for connections.
Version: '5.1.54'  socket: '/var/lib/mysql/mysql.sock'  port: 3306  MySQL Community Server (GPL) by Remi
120803  8:47:37 [Note] /usr/libexec/mysqld: Normal shutdown

120803  8:47:37 [Note] Event Scheduler: Purging the queue. 0 events
120803  8:47:37  InnoDB: Starting shutdown...
120803  8:47:40  InnoDB: Shutdown completed; log sequence number 0 1357212
120803  8:47:40 [Note] /usr/libexec/mysqld: Shutdown complete

120803 08:47:40 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended
120803 08:47:41 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
120803  8:47:41 [Note] Plugin 'FEDERATED' is disabled.
120803  8:47:41  InnoDB: Initializing buffer pool, size = 16.0M
120803  8:47:41  InnoDB: Completed initialization of buffer pool
120803  8:47:41  InnoDB: Started; log sequence number 0 1357212
120803  8:47:41 [Note] Event Scheduler: Loaded 0 events
120803  8:47:41 [Note] /usr/libexec/mysqld: ready for connections.
Version: '5.1.54'  socket: '/var/lib/mysql/mysql.sock'  port: 3306  MySQL Community Server (GPL) by Remi
120803  8:47:44 [Note] /usr/libexec/mysqld: Normal shutdown

120803  8:47:44 [Note] Event Scheduler: Purging the queue. 0 events
120803  8:47:44  InnoDB: Starting shutdown...
120803  8:47:46  InnoDB: Shutdown completed; log sequence number 0 1357212
120803  8:47:46 [Note] /usr/libexec/mysqld: Shutdown complete

120803 08:47:46 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended
120803 08:48:08 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
120803  8:48:08 [Note] Plugin 'FEDERATED' is disabled.
120803  8:48:08  InnoDB: Initializing buffer pool, size = 16.0M

Sorry this question is getting stupidly long but just trying to update with what i need below is my insert with codeignitor how should i be doing this correctly connecting and disconnecting

<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');


class Cron_model extends CI_Model {

    function addResults($data){

       $this->db->select('*');
       $this->db->from('articles');
       $this->db->limit(5);
       $this->db->like('title', $data['title']);
       $this->db->order_by("date", "desc"); 
       $query=$this->db->get();

       if(!$query->num_rows()){

            $this->db->insert('articles', $data);

            return $data['title'];

       }

    }   


}

Thanks for the help everyone

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T19:36:28+00:00Added an answer on June 9, 2026 at 7:36 pm

    How are you connecti g to the database? For the process you are describing you should be connecting and disconnecting each time.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a table with 200 rows. I'm running a cron job every 10
I'm running a cron job (every 15 minutes) which takes about a minute to
If I'm running a resque cron job to run every hour using resque-scheduler on
I have a cron job running searching Twitter every 5 minutes, each 5 minutes
Suppose I have ten cron jobs running in parallel which fetch entries from database
I am running a cron job every five minutes which calls a php script
I have one domain that is running a cron job every 15mins. I starts
I have a servlet running on GAE and I have a cron job that
I want to run a cron job every minute that will launch a script.
I'm trying to automate page load time testing. I'm imagining running a cron job

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.