jsha / blocktogether

Share your blocks and subscribe to others'
GNU General Public License v3.0
330 stars 68 forks source link

Don't insert blank TwitterUsers on every updateBlocks #124

Open jsha opened 9 years ago

jsha commented 9 years ago

Right now every time updateBlocks is called, it makes a call to insert a large number of TwitterUsers by uid so additional data can be picked up by updateUsers. This is an INSERT IGNORE call so it won't overwrite, but it's presumably somewhat expensive to build the call and send it to MySQL. Alternatives: