Skip to content

Commit d89b0c2

Browse files
author
markzegarelli
authored
Merge pull request #1379 from segmentio/DOC-116_SQL-trait-payload-size
DOC 116 SQL trait payload size
2 parents 55fb779 + 1232309 commit d89b0c2

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/personas/sql-traits.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@ When you're building your query, there are some requirements for the data your q
153153
- It must return at least one additional trait in addition to `user_id`/`group_id`, and no more than 25 total columns
154154
- The query must not return any `user_id`s with a `null` value, or any duplicate `user_id`s.
155155
- The query must not return more than 10 million rows.
156+
- Each record must be less than 16kb in size to adhere to [Segment's maximum request size](/docs/connections/sources/catalog/libraries/server/http-api/#max-request-size).
156157

157158
A successful preview returns a sample of users and their traits.
158159
If we have seen a user before in Personas, their profile shows a green checkmark. You can click that user to view their user profile. If a user has a question mark, we haven't seen this `user_id` in Personas before.
@@ -219,6 +220,10 @@ No, Personas only sends an identify/group call if the values in a row have chang
219220

220221
If you're importing a large list of users and traits, the biggest consideration is the API call usage and volume among the partners you are sending the data to. These vary depending on our partners, so [contact us](https://segment.com/help/contact/) if you are concerned about this.
221222

223+
### Is there a limit on the size of a SQL Trait's payload?
224+
225+
Yes, Segment limits request sizes to a maximum of 16kb. Records larger than this are discarded.
226+
222227
## Troubleshooting
223228

224229
### I am getting a permissions error.
@@ -262,3 +267,4 @@ This means for the [sources connected to Personas](https://app.segment.com/goto-
262267
You might be returning a value for `user_id` that is inconsistent with how you track `user_id` elsewhere. We've seen cases where some customers want to return `email` as the `user_id`, or a partner's tool id as the `user_id`. These are against our best practices and corrupt the identity graph if you are then tracking `user_id` differently elsewhere in your apps.
263268

264269
If you see only question marks in the preview, and have already tracked data historically with Segment, then you probably just have the wrong column. If you cloud source doesn't have the database `user_id`, we recommend JOINing with an internal users table before sending the results back to Segment.
270+

0 commit comments

Comments
 (0)