I'm trying to add two tables side by side they need to be split, cannot be multi column like a & b & & & & c & d
\begin{longtable}{cc}
\begin{longtable}
\hline
a & b\\
\end{longtable} &
\begin{longtable}
\hline
c & b\\
\end{longtable}
\end{longtable}
This approach however gives me TeX capacity exceeded.
Follow-up I am using Jinja2 template package for Python to dynamically add content to my latex file and then compile that latex file using latex package for Python.
Anyhow in python i do not know when I have reached the end of the current page so if I use a tabular I go off the page. Longtable showed promise as it automatically continues down to second page with a smooth transition.
Is there an alternative way to approach this ?