litestack 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/BENCHMARKS.md +12 -3
- data/README.md +3 -3
- data/lib/litestack/version.rb +1 -1
- metadata +1 -4
- data/bench/queue.db +0 -0
- data/bench/queue.db-shm +0 -0
- data/bench/queue.db-wal +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9f959b5e414b4190205ea516cf7acacf180714fd08f4fca9b90a3c84c2f9d594
|
4
|
+
data.tar.gz: 8350f9398d62a481fb656452cd3e4037237c83f292042f1b3db1e56445801a19
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 71c6fbd7f51fca6f8a55e86738fc5f28ae1a8452fe3a1a1f1b9cb6944850b71341c728f1eceb40a72b47a8e9f5ca38d07a83db7a7dbc740275bc4df335001032
|
7
|
+
data.tar.gz: 4fd49dd8559328728c9be9dbcf2740c9da22606501822877fccb16454b67aa0e7e5ecdc35a870752d9f02557c3e6d3397df6c68005a20543dd7b6dfd09873cda
|
data/BENCHMARKS.md
CHANGED
@@ -11,7 +11,10 @@ These are not real life scenarios and I hope I will be able to produce some inte
|
|
11
11
|
Post.find(id) #ActiveRecord
|
12
12
|
Post[id] #Sequel
|
13
13
|
```
|
14
|
-
This
|
14
|
+
This produces
|
15
|
+
```sql
|
16
|
+
SELECT * FROM posts WHERE id = ?
|
17
|
+
```
|
15
18
|
|
16
19
|
|Prcoess Count|ActiveRecord:PostgreSQL|ActiveRecord:litedb|Sequel:PostgreSQL|Sequel:litedb|
|
17
20
|
|-:|-:|-:|-:|-:|
|
@@ -25,7 +28,10 @@ This maps to "SELECT * FROM posts WHERE id = ?"
|
|
25
28
|
```ruby
|
26
29
|
Post.where(user_id: id).limit(5) # ActiveRecord and Sequel
|
27
30
|
```
|
28
|
-
This
|
31
|
+
This produces
|
32
|
+
```sql
|
33
|
+
SELECT * FROM posts WHERE user_id = ? LIMIT 5
|
34
|
+
```
|
29
35
|
|
30
36
|
|Prcoess Count|ActiveRecord:PostgreSQL|ActiveRecord:litedb|Sequel:PostgreSQL|Sequel:litedb|
|
31
37
|
|-:|-:|-:|-:|-:|
|
@@ -40,7 +46,10 @@ This maps to "SELECT * FROM posts WHERE user_id = ? LIMIT 5"
|
|
40
46
|
Post.update(id, {updated_at: updated_at} # ActiveRecord
|
41
47
|
Post[id].update({updated_at: updated_at}) # Sequel
|
42
48
|
```
|
43
|
-
This
|
49
|
+
This produces
|
50
|
+
```sql
|
51
|
+
Update posts SET updated_at = ? WHERE id = ?
|
52
|
+
```
|
44
53
|
|
45
54
|
|Prcoess Count|ActiveRecord:PostgreSQL|ActiveRecord:litedb|Sequel:PostgreSQL|Sequel:litedb|
|
46
55
|
|-:|-:|-:|-:|-:|
|
data/README.md
CHANGED
@@ -53,7 +53,7 @@ litestack currently offers three main components
|
|
53
53
|
|
54
54
|
> ![litedb](https://github.com/oldmoe/litestack/blob/master/assets/litedb_logo_teal.png?raw=true)
|
55
55
|
|
56
|
-
litedb is a wrapper around SQLite3, offering a better default configuration that is tuned for concurrency and performance. Out of the box, litedb works seamlessly between multiple processes without database locking errors.
|
56
|
+
litedb is a wrapper around SQLite3, offering a better default configuration that is tuned for concurrency and performance. Out of the box, litedb works seamlessly between multiple processes without database locking errors. litedb can be used in multiple ways, including:
|
57
57
|
|
58
58
|
#### Direct litedb usage
|
59
59
|
|
@@ -69,7 +69,7 @@ db.get_first_value("select count(*) from users") # => 1
|
|
69
69
|
|
70
70
|
#### ActiveRecord
|
71
71
|
|
72
|
-
|
72
|
+
litedb provides tight Rails/ActiveRecord integration and can be configured as follows
|
73
73
|
|
74
74
|
In database.yml
|
75
75
|
|
@@ -162,7 +162,7 @@ The queues need to include a name and a priority (a number between 1 and 10) and
|
|
162
162
|
|
163
163
|
## Contributing
|
164
164
|
|
165
|
-
Bug reports
|
165
|
+
Bug reports are welcome on GitHub at https://github.com/oldmoe/litestack. Please note that this is not an open contribution project and that we don't accept pull requests.
|
166
166
|
|
167
167
|
## License
|
168
168
|
|
data/lib/litestack/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: litestack
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mohamed Hassan
|
@@ -65,9 +65,6 @@ files:
|
|
65
65
|
- bench/bench_queue.rb
|
66
66
|
- bench/bench_rails.rb
|
67
67
|
- bench/bench_raw.rb
|
68
|
-
- bench/queue.db
|
69
|
-
- bench/queue.db-shm
|
70
|
-
- bench/queue.db-wal
|
71
68
|
- bench/rails_job.rb
|
72
69
|
- bench/skjob.rb
|
73
70
|
- bench/uljob.rb
|
data/bench/queue.db
DELETED
Binary file
|
data/bench/queue.db-shm
DELETED
Binary file
|
data/bench/queue.db-wal
DELETED
Binary file
|