You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
See the [releases page](https://github.com/mixpanel/mixpanel-java/releases) for the latest version.
6
6
7
-
```
7
+
```xml
8
8
<dependency>
9
9
<groupId>com.mixpanel</groupId>
10
10
<artifactId>mixpanel-java</artifactId>
11
-
<version>1.5.3</version>
11
+
<version>1.6.1</version>
12
12
</dependency>
13
13
```
14
14
@@ -33,9 +33,13 @@ are built by `MessageBuilder` objects, and those messages can be consumed by the
33
33
34
34
### Gzip Compression
35
35
36
-
The library supports gzip compression for both tracking events (`/track`) and importing historical events (`/import`). To enable gzip compression, pass `true` to the `MixpanelAPI` constructor:
36
+
The library supports gzip compression for both tracking events (`/track`) and importing historical events (`/import`). To enable gzip compression, use the builder:
37
37
38
-
MixpanelAPI mixpanel = new MixpanelAPI(true); // Enable gzip compression
38
+
```java
39
+
MixpanelAPI mixpanel =newMixpanelAPI.Builder()
40
+
.useGzipCompression(true)
41
+
.build();
42
+
```
39
43
40
44
Gzip compression can reduce bandwidth usage and improve performance, especially when sending large batches of events.
41
45
@@ -45,32 +49,37 @@ The library supports importing historical events (events older than 5 days that
For applications that import large batches of events (e.g., using the `/import` endpoint), the library supports optional high-performance JSON serialization using Jackson. When Jackson is available on the classpath, the library automatically uses it for JSON serialization, providing**up to 5x performance improvement** for large batches.
52
+
For applications that import large batches of events (e.g., using the `/import` endpoint), the library supports optional high-performance JSON serialization using Jackson. The Jackson extension provides**up to 5x performance improvement** for large batches.
49
53
50
-
To enable high-performance serialization, add the Jackson dependency to your project:
54
+
To enable high-performance serialization, add the Jackson extension to your project:
High-performance Jackson serializer extension for the Mixpanel Java SDK. This extension provides improved JSON serialization performance for large batch operations.
0 commit comments