#QUERIES (NO PRIMARY KEYS) CASSANDRA (DAY ONE)
category_id | clustering_id | bed | cost | description | favorite | picture| premium | rcount | stars | title 1 | 999999 | 6 | 102 | Ut quis mollit est labore reprehenderit. Consequat culpa fugiat aliqua dolore enim exercitation tempor incididunt laborum et laboris amet ad elit. Elit mollit anim culpa sit aute cillum enim magna ut ea consequat id irure. | False | http://d1bah53dmo2q93.cloudfront.net/999.jpg | True | 1396 | 5 | Ullamco irure quis minim enim enim amet fugiat eiusmod anim proident.
(1 rows)
- Tracing session: 9a986dc0-16c5-11e9-8208-b3a911c7ed43
- activity | timestamp | source | source_elapsed | client ----------------------------------------------------------------------------------------------------------------------------------------+----------------------------+-----------+----------------+----------- Execute CQL3 query | 2019-01-12 15:55:56.956000 | 127.0.0.1 | 0 | 127.0.0.1 Parsing select * from similars where clustering_id = 999999; [Native-Transport-Requests-1] | 2019-01-12 15:55:56.956000 | 127.0.0.1 | 125 | 127.0.0.1 Request complete | 2019-01-12 15:55:57.014267 | 127.0.0.1 | 58267 | 127.0.0.
0.058267 ms
cqlsh:keyspacemarlio> DELETE FROM similars where clustering_id = 999997 and category_id=1 if exists;
Tracing session: f7d8ff80-16c6-11e9-8208-b3a911c7ed43
Execute CQL3 query | 2019-01-12 16:05:42.904000 | 127.0.0.1 | 0 | 127.0.0.1
Request complete | 2019-01-12 16:05:42.914987 | 127.0.0.1 | 10987 | 127.0.0.1
904000 - 914987
10000 ms
INSERT INTO similars (category_id, clustering_id, title)
VALUES (1, 999997, 'Mario')
Execute CQL3 query | 2019-01-12 16:11:05.357000 | 127.0.0.1 | 0 | 127.0.0.1
Request complete | 2019-01-12 16:11:05.400606 | 127.0.0.1 | 43606 | 127.0.0.1
357000 - 400606
43000 ms
UPDATE similars SET title='Rides hard, gets along with others, a real winner' WHERE id = 999997 IF EXISTS;
Execute CQL3 query | 2019-01-12 16:22:35.959000 | 127.0.0.1 | Request complete | 2019-01-12 16:22:35.997824 | 127.0.0.1 | 959000 - 997824 38000 ms