Percona Server is an enhanced drop-in replacement for MySQL
PostgreSQL is a powerful, open source object-relational database system. It has more than 15 years of active development and a proven architecture that has earned it a strong reputation for reliability, data integrity, and correctness





# Time: 140729 16:24:41
# User@Host: lokku[lokku] @ localhost [] Id: 4975130
# Schema: br_realestate Last_errno: 0 Killed: 0
# Query_time: 4.251948 Lock_time: 0.000119 Rows_sent: 1220746 Rows_examined: 4717181 Rows_affected: 0
# Bytes_sent: 4882675# Query_time: 1.028571 Lock_time: 0.000060 Rows_sent: 400 Rows_examined: 1022446 Rows_affected: 0
# Bytes_sent: 1659
/* get_batch_of_deduper_jobs */
SELECT SQL_CALC_FOUND_ROWS
id
FROM
listings
WHERE
is_queued_for_geocoding=0 AND
is_queued_for_nlp=0 AND
is_queued_for_deduping=1
ORDER BY
int_time_etl_inserted
DESC
LIMIT
400;
# Query_time: 1.849355 Lock_time: 0.006700 Rows_sent: 9998 Rows_examined: 39992 Rows_affected: 0
# Bytes_sent: 8128902
/* get_full_listings_by_id */
SELECT
*, listings.id as id, listings.title as title, listers.id as lister_id, listers.name as lister_name, listers.company as lister_company, datasources.id as datasource_id, datasources.name as datasource_
name , datasources.title as datasource_title, datasources.provider as datasource_provider FROM listings, listers, realestate_attributes, datasources
WHERE
listers.id = listings.lister_id AND realestate_attributes.id = listings.id AND datasources.id = listings.datasource_id
AND
listings.id in (148469654,145139743,[...])
asdf
a
faf
asdf
10282 /* get_full_listings_by_id */ 2106 /* get_batch_of_deduper_jobs */
1645 /* is_lid_duplicated_with_other_datasource
1311 /* insert_mutex_listings */
1248 /* get_eligible_listings_in_box_and_price
1118 /* lis_get_fingerprint_data_for_hash */
968 /* set_nlp_result */
761 /* set_geocoder_result */
746 /* lis_gain_locks */
540 /* get_mutex_duplicates_per_listing_id *
369 /* _lis_sm_pushing */
341 /* lis_get_random_image_url */
322 /* get_pre_import_data_for_existing_list
307 /* _change_listing */
289 /* get_cache_data */
281 /* get_batch_of_geocoding_jobs */
276 /* lis_photo_urls_sth */
250 /* _lis_confirm_and_get_job */
221 /* insert_daemon_metrics */
212 /* lis_live_images_sth */